Btrfs: Metadata reservation for orphan inodes
[linux-2.6-block.git] / fs / btrfs / super.c
index 38d91c7e8db2e5ca47b4faf18558c00f6695bdec..574285c8cbd4623a22fbb70dc7b98537e0a223ec 100644 (file)
@@ -694,11 +694,11 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
                if (btrfs_super_log_root(&root->fs_info->super_copy) != 0)
                        return -EINVAL;
 
-               /* recover relocation */
-               ret = btrfs_recover_relocation(root);
+               ret = btrfs_cleanup_fs_roots(root->fs_info);
                WARN_ON(ret);
 
-               ret = btrfs_cleanup_fs_roots(root->fs_info);
+               /* recover relocation */
+               ret = btrfs_recover_relocation(root);
                WARN_ON(ret);
 
                sb->s_flags &= ~MS_RDONLY;