Lines Matching refs:dest
11 struct btrfs_block_rsv *dest, u64 num_bytes, in block_rsv_release_bytes() argument
42 if (dest) { in block_rsv_release_bytes()
43 spin_lock(&dest->lock); in block_rsv_release_bytes()
44 if (!dest->full) { in block_rsv_release_bytes()
47 bytes_to_add = dest->size - dest->reserved; in block_rsv_release_bytes()
49 dest->reserved += bytes_to_add; in block_rsv_release_bytes()
50 if (dest->reserved >= dest->size) in block_rsv_release_bytes()
51 dest->full = 1; in block_rsv_release_bytes()
54 spin_unlock(&dest->lock); in block_rsv_release_bytes()
233 struct btrfs_block_rsv *dest, u64 num_bytes, in btrfs_cond_migrate_bytes() argument
239 if (global_rsv->space_info != dest->space_info) in btrfs_cond_migrate_bytes()
253 btrfs_block_rsv_add_bytes(dest, num_bytes, true); in btrfs_cond_migrate_bytes()