]> 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)
commitce68a81effca2c7ff67cacfa142a7d1b3558fe6e
tree3c94d80414348e7b21a331ce810cdaebf2ed6eeb
parent88cd021cb90461ffbfde2703bef24bd1b748fa8d
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