提交 72bcd99d 编写于 作者: J Josef Bacik 提交者: Josef Bacik

Btrfs: set flushing if we're limited flushing

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: NJosef Bacik <jbacik@fusionio.com>
上级 97547676
...@@ -3997,7 +3997,7 @@ static int reserve_metadata_bytes(struct btrfs_root *root, ...@@ -3997,7 +3997,7 @@ static int reserve_metadata_bytes(struct btrfs_root *root,
* We make the other tasks wait for the flush only when we can flush * We make the other tasks wait for the flush only when we can flush
* all things. * all things.
*/ */
if (ret && flush == BTRFS_RESERVE_FLUSH_ALL) { if (ret && flush != BTRFS_RESERVE_NO_FLUSH) {
flushing = true; flushing = true;
space_info->flush = 1; space_info->flush = 1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册