]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove pointless inode lookup when processing extrefs during log replay
authorFilipe Manana <fdmanana@suse.com>
Wed, 3 Sep 2025 11:10:01 +0000 (12:10 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:21 +0000 (08:49 +0200)
commite41c5e611a65799747709b8fed461dd07647c40d
tree61a6b805bb7c40ae3a7649280ecb85f35de3e532
parentbd9c063e6ff2657ae89de9838fd792c1157ec96c
btrfs: remove pointless inode lookup when processing extrefs during log replay

At unlink_extrefs_not_in_log() we do an inode lookup of the directory but
we already have the directory inode accessible as a function argument, so
the lookup is redudant. Remove it and use the directory inode passed in as
an argument.

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/tree-log.c