Lines Matching refs:block_rsv
595 struct btrfs_block_rsv block_rsv; in create_subvol() local
639 btrfs_init_block_rsv(&block_rsv, BTRFS_BLOCK_RSV_TEMP); in create_subvol()
640 ret = btrfs_subvolume_reserve_metadata(root, &block_rsv, in create_subvol()
644 qgroup_reserved = block_rsv.qgroup_rsv_reserved; in create_subvol()
656 trans->block_rsv = &block_rsv; in create_subvol()
657 trans->bytes_reserved = block_rsv.size; in create_subvol()
764 trans->block_rsv = NULL; in create_subvol()
768 btrfs_block_rsv_release(fs_info, &block_rsv, (u64)-1, NULL); in create_subvol()
792 struct btrfs_block_rsv *block_rsv; in create_snapshot() local
830 block_rsv = &pending_snapshot->block_rsv; in create_snapshot()
831 btrfs_init_block_rsv(block_rsv, BTRFS_BLOCK_RSV_TEMP); in create_snapshot()
838 ret = btrfs_subvolume_reserve_metadata(BTRFS_I(dir)->root, block_rsv, in create_snapshot()
842 qgroup_reserved = block_rsv->qgroup_rsv_reserved; in create_snapshot()
891 btrfs_block_rsv_release(fs_info, block_rsv, (u64)-1, NULL); in create_snapshot()
3125 struct btrfs_block_rsv *block_rsv = &fs_info->global_block_rsv; in btrfs_ioctl_space_info() local
3127 spin_lock(&block_rsv->lock); in btrfs_ioctl_space_info()
3128 space.total_bytes = block_rsv->size; in btrfs_ioctl_space_info()
3129 space.used_bytes = block_rsv->size - block_rsv->reserved; in btrfs_ioctl_space_info()
3130 spin_unlock(&block_rsv->lock); in btrfs_ioctl_space_info()