btrfs: remove unnecessary variable shadowing in btrfs_invalidatepage()
authorQu Wenruo <wqu@suse.com>
Thu, 25 Mar 2021 07:14:35 +0000 (15:14 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Apr 2021 15:25:18 +0000 (17:25 +0200)
commitd239bcb83b3eb43faf50a50948c4381eea6335bc
tree90a9eb761a021471cc00dcc52b7b9c3b32881731
parentac5804eb8521bea5c1ec1b7e07ad87c469bf7437
btrfs: remove unnecessary variable shadowing in btrfs_invalidatepage()

In btrfs_invalidatepage() we re-declare @tree variable as
btrfs_ordered_inode_tree.

Since it's only used to do the spinlock, we can grab it from inode
directly, and remove the unnecessary declaration completely.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c