OSDN Git Service

btrfs: pass the ino via truncate control
authorJosef Bacik <josef@toxicpanda.com>
Fri, 3 Dec 2021 22:18:14 +0000 (17:18 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 13:18:24 +0000 (14:18 +0100)
commit487e81d2a4009d17dcfe7c67b78b75cd96bcdde3
tree5dd90cbdf77a8de1667fd13e37c0859e20759c2c
parent655807b8957ba84a583104c422a8f53725997d55
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>
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