btrfs: add an inode-item.h
authorJosef Bacik <josef@toxicpanda.com>
Fri, 3 Dec 2021 22:18:03 +0000 (17:18 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 13:18:23 +0000 (14:18 +0100)
commit26c2c4540d6d5c85a22a857ccda304361f1afeaf
tree9e3088200b5907be5c7ed5e6b4c1290ca68abae7
parent727e60604f6a61b8e4330e8fe63a8cf0a067d29d
btrfs: add an inode-item.h

We have a few helpers in inode-item.c, and I'm going to make a few
changes to how we do truncate in the future, so break out these
definitions into their own header file to trim down ctree.h some and
make it easier to do the work on truncate in the future.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
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/delayed-inode.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode-item.c
fs/btrfs/inode-item.h [new file with mode: 0644]
fs/btrfs/inode.c
fs/btrfs/relocation.c
fs/btrfs/tree-log.c