Lines Matching refs:dest
105 struct btrfs_block_rsv *dest, u64 num_bytes, in block_rsv_release_bytes() argument
137 if (dest) { in block_rsv_release_bytes()
138 spin_lock(&dest->lock); in block_rsv_release_bytes()
139 if (!dest->full) { in block_rsv_release_bytes()
142 bytes_to_add = dest->size - dest->reserved; in block_rsv_release_bytes()
144 dest->reserved += bytes_to_add; in block_rsv_release_bytes()
145 if (dest->reserved >= dest->size) in block_rsv_release_bytes()
146 dest->full = true; in block_rsv_release_bytes()
149 spin_unlock(&dest->lock); in block_rsv_release_bytes()
328 struct btrfs_block_rsv *dest, u64 num_bytes, in btrfs_cond_migrate_bytes() argument
334 if (global_rsv->space_info != dest->space_info) in btrfs_cond_migrate_bytes()
348 btrfs_block_rsv_add_bytes(dest, num_bytes, true); in btrfs_cond_migrate_bytes()