Commit 1f079fa2 authored by Luis Henriques's avatar Luis Henriques Committed by David Sterba

btrfs: Fix warning "variable ‘blocksize’ set but not used"

Variable 'blocksize' in reada_walk_down() is not used since commit
d3e46fea ("btrfs: sink blocksize parameter to readahead_tree_block").
This patch simply removes this variable.
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 5d8eb6fe
...@@ -8464,7 +8464,6 @@ static noinline void reada_walk_down(struct btrfs_trans_handle *trans, ...@@ -8464,7 +8464,6 @@ static noinline void reada_walk_down(struct btrfs_trans_handle *trans,
u64 refs; u64 refs;
u64 flags; u64 flags;
u32 nritems; u32 nritems;
u32 blocksize;
struct btrfs_key key; struct btrfs_key key;
struct extent_buffer *eb; struct extent_buffer *eb;
int ret; int ret;
...@@ -8482,7 +8481,6 @@ static noinline void reada_walk_down(struct btrfs_trans_handle *trans, ...@@ -8482,7 +8481,6 @@ static noinline void reada_walk_down(struct btrfs_trans_handle *trans,
eb = path->nodes[wc->level]; eb = path->nodes[wc->level];
nritems = btrfs_header_nritems(eb); nritems = btrfs_header_nritems(eb);
blocksize = root->nodesize;
for (slot = path->slots[wc->level]; slot < nritems; slot++) { for (slot = path->slots[wc->level]; slot < nritems; slot++) {
if (nread >= wc->reada_count) if (nread >= wc->reada_count)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment