Lines Matching refs:block_rsv
582 struct btrfs_block_rsv block_rsv; in create_subvol() local
625 btrfs_init_block_rsv(&block_rsv, BTRFS_BLOCK_RSV_TEMP); in create_subvol()
626 ret = btrfs_subvolume_reserve_metadata(root, &block_rsv, in create_subvol()
634 btrfs_subvolume_release_metadata(root, &block_rsv); in create_subvol()
637 trans->block_rsv = &block_rsv; in create_subvol()
638 trans->bytes_reserved = block_rsv.size; in create_subvol()
743 trans->block_rsv = NULL; in create_subvol()
745 btrfs_subvolume_release_metadata(root, &block_rsv); in create_subvol()
805 btrfs_init_block_rsv(&pending_snapshot->block_rsv, in create_snapshot()
814 &pending_snapshot->block_rsv, in create_snapshot()
859 btrfs_subvolume_release_metadata(root, &pending_snapshot->block_rsv); in create_snapshot()
3972 struct btrfs_block_rsv *block_rsv = &fs_info->global_block_rsv; in btrfs_ioctl_space_info() local
3974 spin_lock(&block_rsv->lock); in btrfs_ioctl_space_info()
3975 space.total_bytes = block_rsv->size; in btrfs_ioctl_space_info()
3976 space.used_bytes = block_rsv->size - block_rsv->reserved; in btrfs_ioctl_space_info()
3977 spin_unlock(&block_rsv->lock); in btrfs_ioctl_space_info()