OSDN Git Service

Btrfs: resume balance on rw (re)mounts properly
[uclinux-h8/linux.git] / fs / btrfs / super.c
index 0eb9a4d..e239915 100644 (file)
@@ -1187,6 +1187,10 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
                if (ret)
                        goto restore;
 
+               ret = btrfs_resume_balance_async(fs_info);
+               if (ret)
+                       goto restore;
+
                sb->s_flags &= ~MS_RDONLY;
        }