diff options
| author | Qu Wenruo <[email protected]> | 2024-04-29 22:23:04 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-07-11 13:33:20 +0000 |
| commit | 4aa7b5d1784f510c0f42afc1d74efb41947221d7 (patch) | |
| tree | e66d699d1329137395cdf0ed22b79cbbf3c69e53 /fs/btrfs/btrfs_inode.h | |
| parent | btrfs: introduce extra sanity checks for extent maps (diff) | |
| download | kernel-4aa7b5d1784f510c0f42afc1d74efb41947221d7.tar.gz kernel-4aa7b5d1784f510c0f42afc1d74efb41947221d7.zip | |
btrfs: remove extent_map::orig_start member
Since we have extent_map::offset, the old extent_map::orig_start is just
extent_map::start - extent_map::offset for non-hole/inline extents.
And since the new extent_map::offset is already verified by
validate_extent_map() while the old orig_start is not, let's just remove
the old member from all call sites.
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Filipe Manana <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
| -rw-r--r-- | fs/btrfs/btrfs_inode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index 38de2fe23f43..12b0b7696601 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h @@ -528,7 +528,7 @@ struct btrfs_file_extent { }; noinline int can_nocow_extent(struct inode *inode, u64 offset, u64 *len, - u64 *orig_start, u64 *orig_block_len, + u64 *orig_block_len, u64 *ram_bytes, struct btrfs_file_extent *file_extent, bool nowait, bool strict); |
