diff options
| author | Qu Wenruo <wqu@suse.com> | 2024-04-30 07:53:05 +0930 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2024-07-11 15:33:20 +0200 |
| commit | e28b851ed9b232c3b84cb8d0fedbdfa8ca881386 (patch) | |
| tree | 1728430e90c854cbadcb687aa69325b188e45500 /fs/btrfs/extent_map.h | |
| parent | 4aa7b5d1784f510c0f42afc1d74efb41947221d7 (diff) | |
| download | linux-next-e28b851ed9b232c3b84cb8d0fedbdfa8ca881386.tar.gz linux-next-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 <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/extent_map.h')
| -rw-r--r-- | fs/btrfs/extent_map.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h index 5ae3d56b4351..5312bb542af0 100644 --- a/fs/btrfs/extent_map.h +++ b/fs/btrfs/extent_map.h @@ -103,15 +103,6 @@ struct extent_map { u64 block_start; /* - * The on-disk length for the file extent. - * - * For compressed extents it matches btrfs_file_extent_item::disk_num_bytes. - * For uncompressed extents it matches extent_map::len. - * For holes and inline extents it's -1 and shouldn't be used. - */ - u64 block_len; - - /* * Generation of the extent map, for merged em it's the highest * generation of all merged ems. * For non-merged extents, it's from btrfs_file_extent_item::generation. |
