]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: use btrfs inodes in btrfs_rmdir() to avoid so much usage of BTRFS_I()
authorFilipe Manana <fdmanana@suse.com>
Fri, 20 Jun 2025 15:58:48 +0000 (16:58 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:58:04 +0000 (23:58 +0200)
commit98060e1611177ddc842601a58258876ab435fdbf
tree872cb2c803eb1767f3fc803e14a4ad94504b2410
parent9f82a4ed34d870b5719f9b95f7da4f74d3325a6f
btrfs: use btrfs inodes in btrfs_rmdir() to avoid so much usage of BTRFS_I()

Almost everywhere we want to use a btrfs inode and therefore we have a
lot of calls to BTRFS_I(), making the code more verbose. Instead use btrfs
inode local variables to avoid so much use of BTRFS_I().

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c