]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: return a btrfs_inode from btrfs_iget_logging()
authorFilipe Manana <fdmanana@suse.com>
Thu, 6 Mar 2025 16:42:28 +0000 (16:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:35:17 +0000 (18:35 +0200)
commit6aea26dc23d5f0f0d780682d80e83abde1a46d68
tree8e37a03d65f1a84ad34e574701a3d81ccf74e875
parente6031107f397725a8959934a8548c2a7772c73e5
btrfs: return a btrfs_inode from btrfs_iget_logging()

[ Upstream commit a488d8ac2c4d96ecc7da59bb35a573277204ac6b ]

All callers of btrfs_iget_logging() are interested in the btrfs_inode
structure rather than the VFS inode, so make btrfs_iget_logging() return
the btrfs_inode instead, avoiding lots of BTRFS_I() calls.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: 5f61b961599a ("btrfs: fix inode lookup error handling during log replay")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/tree-log.c