aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/disk-io.c2
-rw-r--r--fs/btrfs/super.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index f00165de6fbf..08e65e9cf2aa 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2905,7 +2905,9 @@ retry_root_backup:
2905 if (ret) 2905 if (ret)
2906 goto fail_qgroup; 2906 goto fail_qgroup;
2907 2907
2908 mutex_lock(&fs_info->cleaner_mutex);
2908 ret = btrfs_recover_relocation(tree_root); 2909 ret = btrfs_recover_relocation(tree_root);
2910 mutex_unlock(&fs_info->cleaner_mutex);
2909 if (ret < 0) { 2911 if (ret < 0) {
2910 printk(KERN_WARNING 2912 printk(KERN_WARNING
2911 "BTRFS: failed to recover relocation\n"); 2913 "BTRFS: failed to recover relocation\n");
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 4662d92a4b73..b6ebde231de7 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -1467,7 +1467,9 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
1467 goto restore; 1467 goto restore;
1468 1468
1469 /* recover relocation */ 1469 /* recover relocation */
1470 mutex_lock(&fs_info->cleaner_mutex);
1470 ret = btrfs_recover_relocation(root); 1471 ret = btrfs_recover_relocation(root);
1472 mutex_unlock(&fs_info->cleaner_mutex);
1471 if (ret) 1473 if (ret)
1472 goto restore; 1474 goto restore;
1473 1475