summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorLuis Henriques <luis.henriques@canonical.com>2016-08-23 23:23:53 +0100
committerDavid Sterba <dsterba@suse.com>2016-09-26 17:59:49 +0200
commit1f079fa2f8c5ddf0020c7fd820b2393564567a2a (patch)
treecff99edf7e34fcf57a78a7b4c4b2e2e289c8edb7 /fs/btrfs/extent-tree.c
parent5d8eb6fe517583f9c6d5b94faf2254a0207a45c9 (diff)
downloadop-kernel-dev-1f079fa2f8c5ddf0020c7fd820b2393564567a2a.zip
op-kernel-dev-1f079fa2f8c5ddf0020c7fd820b2393564567a2a.tar.gz
btrfs: Fix warning "variable ‘blocksize’ set but not used"
Variable 'blocksize' in reada_walk_down() is not used since commit d3e46fea1b1e ("btrfs: sink blocksize parameter to readahead_tree_block"). This patch simply removes this variable. Signed-off-by: Luis Henriques <luis.henriques@canonical.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index bc266f6..e9d6060 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -8464,7 +8464,6 @@ static noinline void reada_walk_down(struct btrfs_trans_handle *trans,
u64 refs;
u64 flags;
u32 nritems;
- u32 blocksize;
struct btrfs_key key;
struct extent_buffer *eb;
int ret;
@@ -8482,7 +8481,6 @@ static noinline void reada_walk_down(struct btrfs_trans_handle *trans,
eb = path->nodes[wc->level];
nritems = btrfs_header_nritems(eb);
- blocksize = root->nodesize;
for (slot = path->slots[wc->level]; slot < nritems; slot++) {
if (nread >= wc->reada_count)
OpenPOWER on IntegriCloud