File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ typedef enum abd_flags {
44
44
ABD_FLAG_LINEAR_PAGE = 1 << 5 , /* linear but allocd from page */
45
45
ABD_FLAG_GANG = 1 << 6 , /* mult ABDs chained together */
46
46
ABD_FLAG_GANG_FREE = 1 << 7 , /* gang ABD is responsible for mem */
47
- ABD_FLAG_ZEROS = 1 << 8 , /* ABD for zero-filled buffer */
48
- ABD_FLAG_ALLOCD = 1 << 9 , /* we allocated the abd_t */
47
+ ABD_FLAG_ALLOCD = 1 << 8 , /* we allocated the abd_t */
49
48
} abd_flags_t ;
50
49
51
50
typedef struct abd {
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ abd_alloc_zero_scatter(void)
250
250
251
251
n = abd_chunkcnt_for_bytes (SPA_MAXBLOCKSIZE );
252
252
abd_zero_scatter = abd_alloc_struct (SPA_MAXBLOCKSIZE );
253
- abd_zero_scatter -> abd_flags |= ABD_FLAG_OWNER | ABD_FLAG_ZEROS ;
253
+ abd_zero_scatter -> abd_flags |= ABD_FLAG_OWNER ;
254
254
abd_zero_scatter -> abd_size = SPA_MAXBLOCKSIZE ;
255
255
256
256
ABD_SCATTER (abd_zero_scatter ).abd_offset = 0 ;
Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ abd_alloc_zero_scatter(void)
509
509
ABD_SCATTER (abd_zero_scatter ).abd_sgl = table .sgl ;
510
510
ABD_SCATTER (abd_zero_scatter ).abd_nents = nr_pages ;
511
511
abd_zero_scatter -> abd_size = SPA_MAXBLOCKSIZE ;
512
- abd_zero_scatter -> abd_flags |= ABD_FLAG_MULTI_CHUNK | ABD_FLAG_ZEROS ;
512
+ abd_zero_scatter -> abd_flags |= ABD_FLAG_MULTI_CHUNK ;
513
513
514
514
abd_for_each_sg (abd_zero_scatter , sg , nr_pages , i ) {
515
515
sg_set_page (sg , abd_zero_page , PAGESIZE , 0 );
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ abd_verify(abd_t *abd)
113
113
ASSERT3U (abd -> abd_flags , = = , abd -> abd_flags & (ABD_FLAG_LINEAR |
114
114
ABD_FLAG_OWNER | ABD_FLAG_META | ABD_FLAG_MULTI_ZONE |
115
115
ABD_FLAG_MULTI_CHUNK | ABD_FLAG_LINEAR_PAGE | ABD_FLAG_GANG |
116
- ABD_FLAG_GANG_FREE | ABD_FLAG_ZEROS | ABD_FLAG_ALLOCD ));
116
+ ABD_FLAG_GANG_FREE | ABD_FLAG_ALLOCD ));
117
117
IMPLY (abd -> abd_parent != NULL , !(abd -> abd_flags & ABD_FLAG_OWNER ));
118
118
IMPLY (abd -> abd_flags & ABD_FLAG_META , abd -> abd_flags & ABD_FLAG_OWNER );
119
119
if (abd_is_linear (abd )) {
You can’t perform that action at this time.
0 commit comments