diff options
| author | 2024-04-30 07:53:04 +0930 | |
|---|---|---|
| committer | 2024-07-11 15:33:20 +0200 | |
| commit | 4aa7b5d1784f510c0f42afc1d74efb41947221d7 (patch) | |
| tree | e66d699d1329137395cdf0ed22b79cbbf3c69e53 /fs/btrfs/compression.c | |
| parent | btrfs: introduce extra sanity checks for extent maps (diff) | |
| download | wireguard-linux-4aa7b5d1784f510c0f42afc1d74efb41947221d7.tar.xz wireguard-linux-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 <johannes.thumshirn@wdc.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
| -rw-r--r-- | fs/btrfs/compression.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index 7b4843df0752..4f6d748aa99e 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -590,7 +590,7 @@ void btrfs_submit_compressed_read(struct btrfs_bio *bbio) cb = alloc_compressed_bio(inode, file_offset, REQ_OP_READ, end_bbio_compressed_read); - cb->start = em->orig_start; + cb->start = em->start - em->offset; em_len = em->len; em_start = em->start; |
