]> Gentwo Git Trees - linux/.git/commit
btrfs: reduce arguments to btrfs_del_inode_ref_in_log()
authorFilipe Manana <fdmanana@suse.com>
Wed, 19 Nov 2025 13:06:55 +0000 (13:06 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 25 Nov 2025 00:53:33 +0000 (01:53 +0100)
commit139e3167d81143f9cd719fde420a825dae7b711d
tree34498e3b2fe81c296bcdb3724f8f48e62a3cc46a
parent1361f7d8da3eb5a63ce520754d3e8c2db5790e7c
btrfs: reduce arguments to btrfs_del_inode_ref_in_log()

Instead of passing a root and the objectid of the parent directory, just
pass the directory inode, as like that we can extract both the root and
the objectid, reducing the number of arguments by one. It also makes the
function more consistent with other log tree functions in the sense that
we pass the inode and not only its objectid.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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
fs/btrfs/tree-log.c
fs/btrfs/tree-log.h