Btrfs: fix compile warnings in extent_io.c
PATCH 1/1 Btrfs: fix compile warnings in extent_io.c
These warnings are bogus since we will always have at least one page in an eb, but to make the compiler happy just set ret = 0 in these two cases. Thanks,
Btrfs: fix compile warnings in extent_io.c
These warnings are bogus since we will always have at least one page in an eb, but to make the compiler happy just set ret = 0 in these two cases. Thanks,
Signed-off-by Josef Bacik <[email protected]>
--- fs/btrfs/extent_io.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/extent_io.c +2 -2
@@ -1927,7 +1927,7 @@ int repair_eb_io_failure(struct btrfs_root *root, struct extent_buffer *eb,struct btrfs_mapping_tree *map_tree = &root->fs_info->mapping_tree;u64 start = eb->start;unsigned long i, num_pages =num_extent_pages (eb->start, eb->len); -int ret; +int ret =0 ;for (i =0 ; i < num_pages; i++) {struct page *p =extent_buffer_page (eb, i);
@@ -3152,7 +3152,7 @@ static int write_one_eb(struct extent_buffer *eb,u64 offset = eb->start;unsigned long i, num_pages;int rw = (epd->sync_io ?WRITE_SYNC :WRITE ); -int ret; +int ret =0 ;clear_bit (EXTENT_BUFFER_IOERR , &eb->bflags); num_pages =num_extent_pages (eb->start, eb->len);
Signature · 1 line
1.7.7.6