btrfs: remove no longer used counter when reading data page
After commit 92082d4097 ("btrfs: integrate page status update for
data read path into begin/end_page_read"), the 'nr' counter at
btrfs_do_readpage() is no longer used, we increment it but we never
read from it. So just remove it.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
committed by
David Sterba
parent
bbf0ea7ea3
commit
ad3fc7946b
@@ -3563,7 +3563,6 @@ int btrfs_do_readpage(struct page *page, struct extent_map **em_cached,
|
|||||||
u64 cur_end;
|
u64 cur_end;
|
||||||
struct extent_map *em;
|
struct extent_map *em;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
int nr = 0;
|
|
||||||
size_t pg_offset = 0;
|
size_t pg_offset = 0;
|
||||||
size_t iosize;
|
size_t iosize;
|
||||||
size_t blocksize = inode->i_sb->s_blocksize;
|
size_t blocksize = inode->i_sb->s_blocksize;
|
||||||
@@ -3722,9 +3721,7 @@ int btrfs_do_readpage(struct page *page, struct extent_map **em_cached,
|
|||||||
end_bio_extent_readpage, 0,
|
end_bio_extent_readpage, 0,
|
||||||
this_bio_flag,
|
this_bio_flag,
|
||||||
force_bio_submit);
|
force_bio_submit);
|
||||||
if (!ret) {
|
if (ret) {
|
||||||
nr++;
|
|
||||||
} else {
|
|
||||||
unlock_extent(tree, cur, cur + iosize - 1);
|
unlock_extent(tree, cur, cur + iosize - 1);
|
||||||
end_page_read(page, false, cur, iosize);
|
end_page_read(page, false, cur, iosize);
|
||||||
goto out;
|
goto out;
|
||||||
|
|||||||
Reference in New Issue
Block a user