diff options
| author | Qu Wenruo <[email protected]> | 2024-04-29 22:23:05 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-07-11 13:33:20 +0000 |
| commit | e28b851ed9b232c3b84cb8d0fedbdfa8ca881386 (patch) | |
| tree | 1728430e90c854cbadcb687aa69325b188e45500 /fs/btrfs/compression.c | |
| parent | btrfs: remove extent_map::orig_start member (diff) | |
| download | kernel-e28b851ed9b232c3b84cb8d0fedbdfa8ca881386.tar.gz kernel-e28b851ed9b232c3b84cb8d0fedbdfa8ca881386.zip | |
btrfs: remove extent_map::block_len member
The extent_map::block_len is either extent_map::len (non-compressed
extent) or extent_map::disk_num_bytes (compressed extent).
Since we already have sanity checks to do the cross-checks between the
new and old members, we can drop the old extent_map::block_len now.
For most call sites, they can manually select extent_map::len or
extent_map::disk_num_bytes, since most if not all of them have checked
if the extent is compressed.
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/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 4f6d748aa99e..cd88432e7072 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -585,7 +585,7 @@ void btrfs_submit_compressed_read(struct btrfs_bio *bbio) } ASSERT(extent_map_is_compressed(em)); - compressed_len = em->block_len; + compressed_len = em->disk_num_bytes; cb = alloc_compressed_bio(inode, file_offset, REQ_OP_READ, end_bbio_compressed_read); |
