btrfs: add truncate control struct
authorJosef Bacik <josef@toxicpanda.com>
Fri, 3 Dec 2021 22:18:09 +0000 (17:18 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 13:18:24 +0000 (14:18 +0100)
commitd9ac19c3806434af2a92b4008dbf39c2a67c60cf
tree19a889e14a1f4ab9c60901410797639a4392a0af
parent7097a941bf75ed1f632342937984a24f0b1d76a4
btrfs: add truncate control struct

I'm going to be adding more arguments and counters to
btrfs_truncate_inode_items, so add a control struct to handle all of the
extra arguments to make it easier to follow.

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/free-space-cache.c
fs/btrfs/inode-item.c
fs/btrfs/inode-item.h
fs/btrfs/inode.c
fs/btrfs/tree-log.c