aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/backref.c
diff options
context:
space:
mode:
authorGravatar David Sterba <dsterba@suse.com> 2020-08-17 12:08:37 +0200
committerGravatar David Sterba <dsterba@suse.com> 2020-10-07 12:06:55 +0200
commit0af447d0507b1623cd4b94ad941460951e141783 (patch)
treebba23bc990b923b83b00ae4ad37cc3415678f6d1 /fs/btrfs/backref.c
parentbtrfs: compression: move declarations to header (diff)
downloadlinux-0af447d0507b1623cd4b94ad941460951e141783.tar.gz
linux-0af447d0507b1623cd4b94ad941460951e141783.tar.bz2
linux-0af447d0507b1623cd4b94ad941460951e141783.zip
btrfs: remove unnecessarily shadowed variables
In btrfs_orphan_cleanup, there's another instance of fs_info, but it's the same as the one we already have. In btrfs_backref_finish_upper_links, rb_node is same type and used as temporary cursor to the tree. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/backref.c')
-rw-r--r--fs/btrfs/backref.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index ea1c28ccb44f..b3268f4ea5f3 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/backref.c
@@ -2997,7 +2997,6 @@ int btrfs_backref_finish_upper_links(struct btrfs_backref_cache *cache,
while (!list_empty(&pending_edge)) {
struct btrfs_backref_node *upper;
struct btrfs_backref_node *lower;
- struct rb_node *rb_node;
edge = list_first_entry(&pending_edge,
struct btrfs_backref_edge, list[UPPER]);