Lines Matching refs:swapped_blocks
3779 struct btrfs_qgroup_swapped_blocks *swapped_blocks) in btrfs_qgroup_init_swapped_blocks() argument
3783 spin_lock_init(&swapped_blocks->lock); in btrfs_qgroup_init_swapped_blocks()
3785 swapped_blocks->blocks[i] = RB_ROOT; in btrfs_qgroup_init_swapped_blocks()
3786 swapped_blocks->swapped = false; in btrfs_qgroup_init_swapped_blocks()
3797 struct btrfs_qgroup_swapped_blocks *swapped_blocks; in btrfs_qgroup_clean_swapped_blocks() local
3800 swapped_blocks = &root->swapped_blocks; in btrfs_qgroup_clean_swapped_blocks()
3802 spin_lock(&swapped_blocks->lock); in btrfs_qgroup_clean_swapped_blocks()
3803 if (!swapped_blocks->swapped) in btrfs_qgroup_clean_swapped_blocks()
3806 struct rb_root *cur_root = &swapped_blocks->blocks[i]; in btrfs_qgroup_clean_swapped_blocks()
3813 swapped_blocks->blocks[i] = RB_ROOT; in btrfs_qgroup_clean_swapped_blocks()
3815 swapped_blocks->swapped = false; in btrfs_qgroup_clean_swapped_blocks()
3817 spin_unlock(&swapped_blocks->lock); in btrfs_qgroup_clean_swapped_blocks()
3838 struct btrfs_qgroup_swapped_blocks *blocks = &subvol_root->swapped_blocks; in btrfs_qgroup_add_swapped_blocks()
3945 struct btrfs_qgroup_swapped_blocks *blocks = &root->swapped_blocks; in btrfs_qgroup_trace_subtree_after_cow()