summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_map.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2023-11-24 00:53:51 +0100
committerDavid Sterba <dsterba@suse.com>2023-12-15 20:27:03 +0100
commit3c0e918b8fb3a6a7da1558913302a3e89cf87343 (patch)
tree2d4a26f8b12be113e9a8efe730727f3ae62e76bb /fs/btrfs/extent_map.c
parentbtrfs: allow extent buffer helpers to skip cross-page handling (diff)
downloadlinux-3c0e918b8fb3a6a7da1558913302a3e89cf87343.tar.xz
linux-3c0e918b8fb3a6a7da1558913302a3e89cf87343.zip
btrfs: remove no longer used EXTENT_MAP_DELALLOC block start value
After commit ac3c0d36a2a2 ("btrfs: make fiemap more efficient and accurate reporting extent sharedness") we no longer need to create special extent maps during fiemap that have a block start with the EXTENT_MAP_DELALLOC value. So this block start value for extent maps is no longer used since then, therefore remove it. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_map.c')
-rw-r--r--fs/btrfs/extent_map.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c
index c956b1ced69f..80f86503a5cd 100644
--- a/fs/btrfs/extent_map.c
+++ b/fs/btrfs/extent_map.c
@@ -212,9 +212,6 @@ static int mergable_maps(struct extent_map *prev, struct extent_map *next)
if (!list_empty(&prev->list) || !list_empty(&next->list))
return 0;
- ASSERT(next->block_start != EXTENT_MAP_DELALLOC &&
- prev->block_start != EXTENT_MAP_DELALLOC);
-
if (extent_map_end(prev) == next->start &&
prev->flags == next->flags &&
((next->block_start == EXTENT_MAP_HOLE &&