Files
linux/include/trace/events
Qu Wenruo c77a8c6100 btrfs: remove extent_map::block_start member
The member extent_map::block_start can be calculated from
extent_map::disk_bytenr + extent_map::offset for regular extents.
And otherwise just extent_map::disk_bytenr.

And this is already validated by the validate_extent_map().  Now we can
remove the member.

However there is a special case in btrfs_create_dio_extent() where we
for NOCOW/PREALLOC ordered extents cannot directly use the resulting
btrfs_file_extent, as btrfs_split_ordered_extent() cannot handle them
yet.

So for that call site, we pass file_extent->disk_bytenr +
file_extent->num_bytes as disk_bytenr for the ordered extent, and 0 for
offset.

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>
2024-07-11 15:33:21 +02:00
..
2023-08-02 09:13:09 -06:00
2023-07-04 19:40:16 +01:00
2023-07-04 19:40:16 +01:00
2024-04-25 20:56:20 -07:00
2024-05-08 10:39:26 +01:00
2023-03-24 11:01:29 +01:00
2023-12-29 11:58:27 -08:00
2023-07-17 08:18:17 -06:00
2024-04-25 20:56:00 -07:00
2024-05-14 07:22:35 -06:00
2024-05-01 18:08:21 +01:00
2022-07-30 14:01:30 -04:00
2023-05-31 11:05:34 -04:00
2023-02-20 08:28:49 +00:00
2024-04-26 15:34:01 +02:00
2023-10-04 10:32:29 -07:00
2023-07-17 08:18:17 -06:00
2023-09-19 07:04:49 +02:00