Lines Matching refs:block_rsv
517 struct btrfs_block_rsv block_rsv; in create_subvol() local
547 btrfs_init_block_rsv(&block_rsv, BTRFS_BLOCK_RSV_TEMP); in create_subvol()
552 ret = btrfs_subvolume_reserve_metadata(root, &block_rsv, 8, false); in create_subvol()
559 btrfs_subvolume_release_metadata(root, &block_rsv); in create_subvol()
562 trans->block_rsv = &block_rsv; in create_subvol()
563 trans->bytes_reserved = block_rsv.size; in create_subvol()
697 trans->block_rsv = NULL; in create_subvol()
699 btrfs_subvolume_release_metadata(root, &block_rsv); in create_subvol()
754 btrfs_init_block_rsv(&pending_snapshot->block_rsv, in create_snapshot()
765 &pending_snapshot->block_rsv, 8, in create_snapshot()
813 btrfs_subvolume_release_metadata(root, &pending_snapshot->block_rsv); in create_snapshot()
3595 struct btrfs_block_rsv *block_rsv = &fs_info->global_block_rsv; in btrfs_ioctl_space_info() local
3597 spin_lock(&block_rsv->lock); in btrfs_ioctl_space_info()
3598 space.total_bytes = block_rsv->size; in btrfs_ioctl_space_info()
3599 space.used_bytes = block_rsv->size - block_rsv->reserved; in btrfs_ioctl_space_info()
3600 spin_unlock(&block_rsv->lock); in btrfs_ioctl_space_info()