Chris Mason 7c2fe32a23 Btrfs: Fix add_extent_mapping to check for duplicates across the whole range
add_extent_mapping was allowing the insertion of overlapping extents.
This never used to happen because it only inserted the extents from disk
and those were never overlapping.

But, with the data=ordered code, the disk and memory representations of the
file are not the same.  add_extent_mapping needs to ensure a new extent
does not overlap before it inserts.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
2008-09-25 11:04:06 -04:00
..
2008-09-25 11:04:05 -04:00
2007-07-11 10:00:37 -04:00
2007-06-12 09:07:21 -04:00
2007-06-12 09:07:21 -04:00
2008-09-25 11:04:00 -04:00
2007-06-22 14:49:31 -04:00
2008-09-25 11:04:03 -04:00
2008-09-25 11:04:05 -04:00
2008-09-25 11:04:06 -04:00
2008-09-25 11:04:00 -04:00
2008-09-25 11:04:06 -04:00
2007-06-12 09:07:21 -04:00
2008-09-25 11:04:06 -04:00
2008-09-25 11:04:06 -04:00
2008-09-25 11:04:05 -04:00
2008-09-25 11:03:57 -04:00