]> 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)
commit97831ac7cec88189f6b2905a8dca54399b4089a9
tree5dd90cbdf77a8de1667fd13e37c0859e20759c2c
parent049f7b7723c55fbe8c343e87debb6f48ac252f20
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