]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: simplify arguments for btrfs_cross_ref_exist()
authorFilipe Manana <fdmanana@suse.com>
Mon, 9 Dec 2024 16:59:23 +0000 (16:59 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:16 +0000 (14:53 +0100)
commit9e0d43ea4e69aee29ab58f9cd8c90d2c807c862a
treef10e319c0b50b76ed5ba6bc65eb5df3a7fcf8d50
parentadf7da3f261cee646a488d46f2086d6e98e72f57
btrfs: simplify arguments for btrfs_cross_ref_exist()

Instead of passing a root and an objectid which matches an inode number,
pass the inode instead, since the root is always the root associated to
the inode and the objectid is the number of that inode.

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/extent-tree.c
fs/btrfs/extent-tree.h
fs/btrfs/inode.c