]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: make btrfs_file_extent_inline_item_len take a slot
authorJosef Bacik <josef@toxicpanda.com>
Thu, 21 Oct 2021 18:58:33 +0000 (14:58 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:43 +0000 (15:09 +0100)
commit70ad14505099da3bf10c29dac7e9018e6f843690
tree3c94d80414348e7b21a331ce810cdaebf2ed6eeb
parentf0f77033fc3f79c2ecc6f4f938eea1c7ba8e597c
btrfs: make btrfs_file_extent_inline_item_len take a slot

Instead of getting the btrfs_item for this, simply pass in the slot of
the item and then use the btrfs_item_size_nr() helper inside of
btrfs_file_extent_inline_item_len().

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/inode.c