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>
Showing
- fs/btrfs/free-space-cache.c 1 addition, 0 deletionsfs/btrfs/free-space-cache.c
- fs/btrfs/inode-item.c 3 additions, 4 deletionsfs/btrfs/inode-item.c
- fs/btrfs/inode-item.h 3 additions, 0 deletionsfs/btrfs/inode-item.h
- fs/btrfs/inode.c 2 additions, 0 deletionsfs/btrfs/inode.c
- fs/btrfs/tree-log.c 1 addition, 0 deletionsfs/btrfs/tree-log.c
Please register or sign in to comment