summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode-item.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2021-12-03 17:18:14 -0500
committerDavid Sterba <dsterba@suse.com>2022-01-07 14:18:24 +0100
commit487e81d2a4009d17dcfe7c67b78b75cd96bcdde3 (patch)
tree5dd90cbdf77a8de1667fd13e37c0859e20759c2c /fs/btrfs/inode-item.h
parent655807b8957ba84a583104c422a8f53725997d55 (diff)
downloadlinux-487e81d2a4009d17dcfe7c67b78b75cd96bcdde3.tar.bz2
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>
Diffstat (limited to 'fs/btrfs/inode-item.h')
-rw-r--r--fs/btrfs/inode-item.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/inode-item.h b/fs/btrfs/inode-item.h
index 5817ba4ddd23..b0dc14efde30 100644
--- a/fs/btrfs/inode-item.h
+++ b/fs/btrfs/inode-item.h
@@ -32,6 +32,9 @@ struct btrfs_truncate_control {
/* OUT: the number of bytes to sub from this inode. */
u64 sub_bytes;
+ /* IN: the ino we are truncating. */
+ u64 ino;
+
/*
* IN: minimum key type to remove. All key types with this type are
* removed only if their offset >= new_size.