diff options
author | Josef Bacik <josef@toxicpanda.com> | 2021-12-03 23:18:14 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-01-07 14:18:24 +0100 |
commit | 487e81d2a4009d17dcfe7c67b78b75cd96bcdde3 (patch) | |
tree | 5dd90cbdf77a8de1667fd13e37c0859e20759c2c /fs/btrfs/inode-item.h | |
parent | btrfs: use a flag to control when to clear the file extent range (diff) | |
download | linux-487e81d2a4009d17dcfe7c67b78b75cd96bcdde3.tar.xz linux-487e81d2a4009d17dcfe7c67b78b75cd96bcdde3.zip |
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.h | 3 |
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. |