btrfs: move file_extent_item helpers into file-item.h
authorJosef Bacik <josef@toxicpanda.com>
Tue, 15 Nov 2022 16:16:12 +0000 (11:16 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:58 +0000 (18:00 +0100)
commit6bfd0ffa6f2ae0ead92af7c4521626cd456115c5
treeac993d1af002a288bb0cf7d830daef69cd6f4498
parent3a3178c7f7675661d7bd0c67f57420e20982bd34
btrfs: move file_extent_item helpers into file-item.h

These helpers use functions that are in multiple places, which makes it
tricky to sync them into btrfs-progs.  Move them to file-item.h and then
include file-item.h in places that use these helpers.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/accessors.h
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/file-item.h
fs/btrfs/tree-checker.c