summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2013-05-15 09:48:17 +0200
committerJosef Bacik <jbacik@fusionio.com>2013-05-18 03:40:31 +0200
commit061594ef171a5ba52b5786688ae766907b0bda2b (patch)
tree7b4d340fd7b356de99f84520533c78a4c82705dd /fs
parentBtrfs: fix unprotected root node of the subvolume's inode rb-tree (diff)
downloadlinux-061594ef171a5ba52b5786688ae766907b0bda2b.tar.xz
linux-061594ef171a5ba52b5786688ae766907b0bda2b.zip
Btrfs: pause the space balance when remounting to R/O
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index a4807ced23cc..f0857e092a3c 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -1263,6 +1263,7 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
btrfs_dev_replace_suspend_for_unmount(fs_info);
btrfs_scrub_cancel(fs_info);
+ btrfs_pause_balance(fs_info);
ret = btrfs_commit_super(root);
if (ret)