summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file-item.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-08-20 14:51:50 +0200
committerChris Mason <chris.mason@oracle.com>2008-09-25 17:04:06 +0200
commit7c2fe32a238eb12422beca5cbd5194a594baa559 (patch)
treea95bada9d991780e0611e94529e63c8178f4f3be /fs/btrfs/file-item.c
parentBtrfs: Remove broken optimisations in end_bio functions. (diff)
downloadlinux-7c2fe32a238eb12422beca5cbd5194a594baa559.tar.xz
linux-7c2fe32a238eb12422beca5cbd5194a594baa559.zip
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>
Diffstat (limited to 'fs/btrfs/file-item.c')
0 files changed, 0 insertions, 0 deletions