Lines Matching defs:rsv
5 #include "block-rsv.h"
17 * how large we want our block rsv to be, ->reserved is how much space is
49 * There is some logic here to refill the delayed refs rsv or the global rsv
176 void btrfs_init_block_rsv(struct btrfs_block_rsv *rsv, enum btrfs_rsv_type type)
178 memset(rsv, 0, sizeof(*rsv));
179 spin_lock_init(&rsv->lock);
180 rsv->type = type;
184 struct btrfs_block_rsv *rsv,
187 btrfs_init_block_rsv(rsv, type);
188 rsv->space_info = btrfs_find_space_info(fs_info,
206 struct btrfs_block_rsv *rsv)
208 if (!rsv)
210 btrfs_block_rsv_release(fs_info, rsv, (u64)-1, NULL);
211 kfree(rsv);
283 * If we are a delayed block reserve then push to the global rsv,
334 * The global block rsv is based on the size of the extent tree, the
523 "BTRFS: block rsv %d returned %d\n",
558 struct btrfs_block_rsv *rsv)
567 spin_lock(&rsv->lock);
568 if (rsv->reserved < needed_bytes)
572 spin_unlock(&rsv->lock);