diff options
| author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2014-09-21 21:13:03 -0400 |
|---|---|---|
| committer | Chris Mason <clm@fb.com> | 2014-10-03 19:14:58 -0400 |
| commit | 32be3a1ac6d09576c57063c6c350ca36eaebdbd3 (patch) | |
| tree | f0b6892b848e7299ac2b26b47e786335aac13854 | |
| parent | bbe9051441effce51c9a533d2c56440df64db2d7 (diff) | |
btrfs: Fix the wrong condition judgment about subset extent map
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>
| -rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 344a322eb386..ef6fc587d964 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
| @@ -6586,7 +6586,7 @@ insert: | |||
| 6586 | * extent causing the -EEXIST. | 6586 | * extent causing the -EEXIST. |
| 6587 | */ | 6587 | */ |
| 6588 | if (start >= extent_map_end(existing) || | 6588 | if (start >= extent_map_end(existing) || |
| 6589 | start + len <= existing->start) { | 6589 | start <= existing->start) { |
| 6590 | /* | 6590 | /* |
| 6591 | * The existing extent map is the one nearest to | 6591 | * The existing extent map is the one nearest to |
| 6592 | * the [start, start + len) range which overlaps | 6592 | * the [start, start + len) range which overlaps |
