btrfs: pass the ino via truncate control
In the future we are going to want to truncate inode items without needing to have an btrfs_inode to pass in, so add ino to the btrfs_truncate_control and use that to look up the inode items to truncate. 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>
This commit is contained in:
committed by
David Sterba
parent
655807b895
commit
487e81d2a4
@@ -4100,6 +4100,7 @@ static int truncate_inode_items(struct btrfs_trans_handle *trans,
|
||||
{
|
||||
struct btrfs_truncate_control control = {
|
||||
.new_size = new_size,
|
||||
.ino = btrfs_ino(inode),
|
||||
.min_type = min_type,
|
||||
.skip_ref_updates = true,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user