Re: [PATCH v2 03/15] btrfs: remove unnecessary variable shadowing in btrfs_invalidatepage()

2021-03-15 Thread Anand Jain
On 10/03/2021 17:08, Qu Wenruo wrote: 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. Signed-off-by: Qu Wenruo --- Reviewed-by:

[PATCH v2 03/15] btrfs: remove unnecessary variable shadowing in btrfs_invalidatepage()

2021-03-10 Thread Qu Wenruo
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. Signed-off-by: Qu Wenruo --- fs/btrfs/inode.c | 8 ++-- 1 file changed, 2 inser