Lines Matching refs:block_rsv
221 struct btrfs_block_rsv *block_rsv = &inode->block_rsv; in btrfs_inode_rsv_release() local
230 released = btrfs_block_rsv_release(fs_info, block_rsv, 0, in btrfs_inode_rsv_release()
245 struct btrfs_block_rsv *block_rsv = &inode->block_rsv; in btrfs_calculate_inode_block_rsv_size() local
275 spin_lock(&block_rsv->lock); in btrfs_calculate_inode_block_rsv_size()
276 block_rsv->size = reserve_size; in btrfs_calculate_inode_block_rsv_size()
277 block_rsv->qgroup_rsv_size = qgroup_rsv_size; in btrfs_calculate_inode_block_rsv_size()
278 spin_unlock(&block_rsv->lock); in btrfs_calculate_inode_block_rsv_size()
305 struct btrfs_block_rsv *block_rsv = &inode->block_rsv; in btrfs_delalloc_reserve_metadata() local
349 ret = btrfs_reserve_metadata_bytes(fs_info, block_rsv, meta_reserve, flush); in btrfs_delalloc_reserve_metadata()
369 btrfs_block_rsv_add_bytes(block_rsv, meta_reserve, false); in btrfs_delalloc_reserve_metadata()
373 spin_lock(&block_rsv->lock); in btrfs_delalloc_reserve_metadata()
374 block_rsv->qgroup_rsv_reserved += qgroup_reserve; in btrfs_delalloc_reserve_metadata()
375 spin_unlock(&block_rsv->lock); in btrfs_delalloc_reserve_metadata()