Btrfs: Replace the big fs_mutex with a collection of other locks
[linux-2.6-block.git] / fs / btrfs / super.c
index 196d0e280b196e37f337ec230bee2ddf0148f95b..b61ded7a20c943770b02a1bc665e9463804efef2 100644 (file)
@@ -366,12 +366,10 @@ int btrfs_sync_fs(struct super_block *sb, int wait)
                return 0;
        }
        btrfs_clean_old_snapshots(root);
-       mutex_lock(&root->fs_info->fs_mutex);
        btrfs_defrag_dirty_roots(root->fs_info);
        trans = btrfs_start_transaction(root, 1);
        ret = btrfs_commit_transaction(trans, root);
        sb->s_dirt = 0;
-       mutex_unlock(&root->fs_info->fs_mutex);
        return ret;
 }