btrfs: remove unused parameters from btrfs_lookup_inode_extref()
authorSun YangKai <sunk67188@gmail.com>
Sat, 14 Jun 2025 03:39:06 +0000 (11:39 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:58:03 +0000 (23:58 +0200)
commit23a6abdadaa3114e74d2c0350ad7f2b50da7c841
tree73794a775dc5434cbfd8987142a90ce1753a01a5
parent6be75e891c611f5dd460a485b35cd0932b41f763
btrfs: remove unused parameters from btrfs_lookup_inode_extref()

The function btrfs_lookup_inode_extref(` no longer requires transaction
handle, insert length, or COW flag, as the only caller now performs a
read-only lookup using trans == NULL, ins_len == 0 and cow == 0.

This function was introduced in the early days where extref feature was
introduced by commit f186373fef00 ("btrfs: extended inode refs").
Then some cleanup was done in commit 33b98f227111 ("btrfs: cleanup:
removed unused 'btrfs_get_inode_ref_index'"), which removed the only
caller passing trans and other COW specific options.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Sun YangKai <sunk67188@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode-item.c
fs/btrfs/inode-item.h
fs/btrfs/tree-log.c