diff options
author | Luis Henriques <luis.henriques@canonical.com> | 2016-08-23 22:23:23 (GMT) |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-09-26 15:59:49 (GMT) |
commit | 2309e79650100073ca8347279690742777c6698b (patch) | |
tree | b79a53b8dfcce56a93765b8ab1bc0c6fb8c50652 | |
parent | 1f079fa2f8c5ddf0020c7fd820b2393564567a2a (diff) | |
download | linux-2309e79650100073ca8347279690742777c6698b.tar.xz |
btrfs: Fix warning "variable ‘gen’ set but not used"
Variable 'gen' in reada_for_search() is not used since commit 58dc4ce43251
("btrfs: remove unused parameter from 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>
-rw-r--r-- | fs/btrfs/ctree.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index d1c56c9..dcd39cc 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -2268,7 +2268,6 @@ static void reada_for_search(struct btrfs_root *root, u64 search; u64 target; u64 nread = 0; - u64 gen; struct extent_buffer *eb; u32 nr; u32 blocksize; @@ -2313,7 +2312,6 @@ static void reada_for_search(struct btrfs_root *root, search = btrfs_node_blockptr(node, nr); if ((search <= target && target - search <= 65536) || (search > target && search - target <= 65536)) { - gen = btrfs_node_ptr_generation(node, nr); readahead_tree_block(root, search); nread += blocksize; } |