Btrfs: set flushing if we're limited flushing
authorJosef Bacik <jbacik@fusionio.com>
Tue, 18 Dec 2012 20:16:34 +0000 (15:16 -0500)
committerJosef Bacik <josef@toxicpanda.com>
Mon, 14 Jan 2013 18:52:51 +0000 (13:52 -0500)
We still need to say we're flushing if we're limit flushing to keep somebody
from coming in and stealing our reservation.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c

index d133edfcd449988f14f140f0115ab5069ae023b9..61fefda74ff54b0a40cdab7141369f6e236df85d 100644 (file)
@@ -3997,7 +3997,7 @@ again:
         * We make the other tasks wait for the flush only when we can flush
         * all things.
         */
-       if (ret && flush == BTRFS_RESERVE_FLUSH_ALL) {
+       if (ret && flush != BTRFS_RESERVE_NO_FLUSH) {
                flushing = true;
                space_info->flush = 1;
        }