Lines Matching refs:block_rsv
219 struct btrfs_block_rsv *block_rsv = &inode->block_rsv; in btrfs_inode_rsv_release() local
228 released = btrfs_block_rsv_release(fs_info, block_rsv, 0, in btrfs_inode_rsv_release()
243 struct btrfs_block_rsv *block_rsv = &inode->block_rsv; in btrfs_calculate_inode_block_rsv_size() local
273 spin_lock(&block_rsv->lock); in btrfs_calculate_inode_block_rsv_size()
274 block_rsv->size = reserve_size; in btrfs_calculate_inode_block_rsv_size()
275 block_rsv->qgroup_rsv_size = qgroup_rsv_size; in btrfs_calculate_inode_block_rsv_size()
276 spin_unlock(&block_rsv->lock); in btrfs_calculate_inode_block_rsv_size()
303 struct btrfs_block_rsv *block_rsv = &inode->block_rsv; in btrfs_delalloc_reserve_metadata() local
347 ret = btrfs_reserve_metadata_bytes(fs_info, block_rsv, meta_reserve, flush); in btrfs_delalloc_reserve_metadata()
367 btrfs_block_rsv_add_bytes(block_rsv, meta_reserve, false); in btrfs_delalloc_reserve_metadata()
371 spin_lock(&block_rsv->lock); in btrfs_delalloc_reserve_metadata()
372 block_rsv->qgroup_rsv_reserved += qgroup_reserve; in btrfs_delalloc_reserve_metadata()
373 spin_unlock(&block_rsv->lock); in btrfs_delalloc_reserve_metadata()