Btrfs: nuke fs wide allocation mutex V2
[linux-2.6-block.git] / fs / btrfs / tree-log.c
index e6d579053a475b6191e31c6a8396140ab8293e98..835daed5561f5c96b8f9cb244c20f1975ff3f73b 100644 (file)
@@ -271,10 +271,10 @@ static int process_one_buffer(struct btrfs_root *log,
                              struct walk_control *wc, u64 gen)
 {
        if (wc->pin) {
-               mutex_lock(&log->fs_info->alloc_mutex);
+               mutex_lock(&log->fs_info->pinned_mutex);
                btrfs_update_pinned_extents(log->fs_info->extent_root,
                                            eb->start, eb->len, 1);
-               mutex_unlock(&log->fs_info->alloc_mutex);
+               mutex_unlock(&log->fs_info->pinned_mutex);
        }
 
        if (btrfs_buffer_uptodate(eb, gen)) {