]> git.ipfire.org Git - people/ms/linux.git/commit
btrfs: Fix the wrong condition judgment about subset extent map
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 22 Sep 2014 01:13:03 +0000 (09:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:43:05 +0000 (09:43 -0700)
commitd20a3a26e505bf4db7345027f2d42119e5e894b2
tree15e4832664bf55feb435800d6f6afc9ff0f3cbf1
parent985ee9f48778f01bd34b31400dc22f1c7e96220a
btrfs: Fix the wrong condition judgment about subset extent map

commit 32be3a1ac6d09576c57063c6c350ca36eaebdbd3 upstream.

Previous commit: btrfs: Fix and enhance merge_extent_mapping() to insert
best fitted extent map
is using wrong condition to judgement whether the range is a subset of a
existing extent map.

This may cause bug in btrfs no-holes mode.

This patch will correct the judgment and fix the bug.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/inode.c