btrfs: Fix warning "variable ‘blocksize’ set but not used"
authorLuis Henriques <luis.henriques@canonical.com>
Tue, 23 Aug 2016 22:23:53 +0000 (23:23 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Sep 2016 17:11:35 +0000 (19:11 +0200)
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>
fs/btrfs/extent-tree.c

index 584b955253d92bd16127a40e0bdb5b750df4ab2a..088a903c4c6e9f1ac458ac4b0a9bf69ea1ffc409 100644 (file)
@@ -8460,7 +8460,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;
@@ -8478,7 +8477,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)
This page took 0.029116 seconds and 5 git commands to generate.