From: Chris Mason Date: Wed, 20 Aug 2008 12:51:50 +0000 (-0400) Subject: Btrfs: Fix add_extent_mapping to check for duplicates across the whole range X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c2fe32a238eb12422beca5cbd5194a594baa559;p=pandora-kernel.git 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 --- Reading git-diff-tree failed