btrfs: use inode already stored in local variable at btrfs_rmdir()
authorFilipe Manana <fdmanana@suse.com>
Fri, 20 Jun 2025 15:50:31 +0000 (16:50 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:58:04 +0000 (23:58 +0200)
commit9f82a4ed34d870b5719f9b95f7da4f74d3325a6f
tree89b54f6c9194d67063f6f0e4a1f4895317949561
parent44cac5234104bb25e57dc75b8d5e6c5c26c384fb
btrfs: use inode already stored in local variable at btrfs_rmdir()

There's no need to call d_inode(dentry) when calling btrfs_unlink_inode()
since we have already stored that in a local inode variable. So just use
the local variable to make the code less verbose.

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