btrfs: alloc_chunk: improve chunk size variable name
[sfrench/cifs-2.6.git] / fs / btrfs / qgroup.c
index f70825af6438e9c48ebe782f6b8049d27ae807fc..b53d2e7b938d852cea62df7707366bf23c5d4db5 100644 (file)
@@ -3104,9 +3104,6 @@ static int qgroup_rescan_leaf(struct btrfs_trans_handle *trans,
                mutex_unlock(&fs_info->qgroup_rescan_lock);
                goto out;
        }
-       extent_buffer_get(scratch_leaf);
-       btrfs_tree_read_lock(scratch_leaf);
-       btrfs_set_lock_blocking_rw(scratch_leaf, BTRFS_READ_LOCK);
        slot = path->slots[0];
        btrfs_release_path(path);
        mutex_unlock(&fs_info->qgroup_rescan_lock);
@@ -3132,10 +3129,8 @@ static int qgroup_rescan_leaf(struct btrfs_trans_handle *trans,
                        goto out;
        }
 out:
-       if (scratch_leaf) {
-               btrfs_tree_read_unlock_blocking(scratch_leaf);
+       if (scratch_leaf)
                free_extent_buffer(scratch_leaf);
-       }
 
        if (done && !ret) {
                ret = 1;