This is a note to let you know that I've just added the patch titled

    btrfs: Fix the wrong condition judgment about subset extent map

to the 3.17-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     btrfs-fix-the-wrong-condition-judgment-about-subset-extent-map.patch
and it can be found in the queue-3.17 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 32be3a1ac6d09576c57063c6c350ca36eaebdbd3 Mon Sep 17 00:00:00 2001
From: Qu Wenruo <[email protected]>
Date: Mon, 22 Sep 2014 09:13:03 +0800
Subject: btrfs: Fix the wrong condition judgment about subset extent map

From: Qu Wenruo <[email protected]>

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 <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 fs/btrfs/inode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -6528,7 +6528,7 @@ insert:
                 * extent causing the -EEXIST.
                 */
                if (start >= extent_map_end(existing) ||
-                   start + len <= existing->start) {
+                   start <= existing->start) {
                        /*
                         * The existing extent map is the one nearest to
                         * the [start, start + len) range which overlaps


Patches currently in stable-queue which might be from [email protected] 
are

queue-3.17/btrfs-fix-the-wrong-condition-judgment-about-subset-extent-map.patch
queue-3.17/btrfs-fix-a-deadlock-in-btrfs_dev_replace_finishing.patch
queue-3.17/btrfs-fix-and-enhance-merge_extent_mapping-to-insert-best-fitted-extent-map.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to