Lines Matching refs:scratch_leaf
2647 struct extent_buffer *scratch_leaf = NULL; in qgroup_rescan_leaf() local
2685 scratch_leaf = btrfs_clone_extent_buffer(path->nodes[0]); in qgroup_rescan_leaf()
2686 if (!scratch_leaf) { in qgroup_rescan_leaf()
2691 extent_buffer_get(scratch_leaf); in qgroup_rescan_leaf()
2692 btrfs_tree_read_lock(scratch_leaf); in qgroup_rescan_leaf()
2693 btrfs_set_lock_blocking_rw(scratch_leaf, BTRFS_READ_LOCK); in qgroup_rescan_leaf()
2698 for (; slot < btrfs_header_nritems(scratch_leaf); ++slot) { in qgroup_rescan_leaf()
2699 btrfs_item_key_to_cpu(scratch_leaf, &found, slot); in qgroup_rescan_leaf()
2719 if (scratch_leaf) { in qgroup_rescan_leaf()
2720 btrfs_tree_read_unlock_blocking(scratch_leaf); in qgroup_rescan_leaf()
2721 free_extent_buffer(scratch_leaf); in qgroup_rescan_leaf()