]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: stop passing inode object IDs to __add_inode_ref() in log replay
authorFilipe Manana <fdmanana@suse.com>
Tue, 2 Sep 2025 17:08:15 +0000 (18:08 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:20 +0000 (08:49 +0200)
commitbd9c063e6ff2657ae89de9838fd792c1157ec96c
tree3c2fea33e8efbe52008265e8184efadc1c25d410
parent1ebeee283a2ac8ea29a705d7f03a15e3aae30f22
btrfs: stop passing inode object IDs to __add_inode_ref() in log replay

There's no point in passing the inode and parent inode object IDs to
__add_inode_ref() and its helpers because we can get them by calling
btrfs_ino() against the inode and the directory inode, and we pass both
inodes to __add_inode_ref() and its helpers. So remove the object IDs
parameters to reduce arguments passed and to make things less confusing.

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