]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9bcf97692231cdd58d923e63f40b0a5ea3f4efb6
tree5dd90cbdf77a8de1667fd13e37c0859e20759c2c
parent3ed0711c7d7fddd6954ecd3f98a8e65e0ed8a2e2
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