Lines Matching refs:block_rsv
572 struct btrfs_block_rsv block_rsv; in create_subvol() local
599 btrfs_init_block_rsv(&block_rsv, BTRFS_BLOCK_RSV_TEMP); in create_subvol()
604 ret = btrfs_subvolume_reserve_metadata(root, &block_rsv, 8, false); in create_subvol()
611 btrfs_subvolume_release_metadata(fs_info, &block_rsv); in create_subvol()
614 trans->block_rsv = &block_rsv; in create_subvol()
615 trans->bytes_reserved = block_rsv.size; in create_subvol()
743 trans->block_rsv = NULL; in create_subvol()
745 btrfs_subvolume_release_metadata(fs_info, &block_rsv); in create_subvol()
823 btrfs_init_block_rsv(&pending_snapshot->block_rsv, in create_snapshot()
834 &pending_snapshot->block_rsv, 8, in create_snapshot()
883 btrfs_subvolume_release_metadata(fs_info, &pending_snapshot->block_rsv); in create_snapshot()
4644 struct btrfs_block_rsv *block_rsv = &fs_info->global_block_rsv; in btrfs_ioctl_space_info() local
4646 spin_lock(&block_rsv->lock); in btrfs_ioctl_space_info()
4647 space.total_bytes = block_rsv->size; in btrfs_ioctl_space_info()
4648 space.used_bytes = block_rsv->size - block_rsv->reserved; in btrfs_ioctl_space_info()
4649 spin_unlock(&block_rsv->lock); in btrfs_ioctl_space_info()