btrfs: move btrfs_truncate_inode_items to inode-item.c
authorJosef Bacik <josef@toxicpanda.com>
Fri, 3 Dec 2021 22:18:04 +0000 (17:18 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 13:18:24 +0000 (14:18 +0100)
commit54f03ab1e19b04dea546f83ae70b3285bc61b9f8
treec5af64a97a7de3e5cb5fe3d2346d3eb71a434ca8
parent26c2c4540d6d5c85a22a857ccda304361f1afeaf
btrfs: move btrfs_truncate_inode_items to inode-item.c

This is an inode item related manipulation with a few vfs related
adjustments.  I'm going to remove the vfs related code from this helper
and simplify it a lot, but I want those changes to be easily seen via
git blame, so move this function now and then the simplification work
can be done.

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/inode-item.c
fs/btrfs/inode-item.h
fs/btrfs/inode.c