Lines Matching refs:rsv
5 #include "block-rsv.h"
18 * how large we want our block rsv to be, ->reserved is how much space is
50 * There is some logic here to refill the delayed refs rsv or the global rsv
177 void btrfs_init_block_rsv(struct btrfs_block_rsv *rsv, enum btrfs_rsv_type type)
179 memset(rsv, 0, sizeof(*rsv));
180 spin_lock_init(&rsv->lock);
181 rsv->type = type;
185 struct btrfs_block_rsv *rsv,
188 btrfs_init_block_rsv(rsv, type);
189 rsv->space_info = btrfs_find_space_info(fs_info,
207 struct btrfs_block_rsv *rsv)
209 if (!rsv)
211 btrfs_block_rsv_release(fs_info, rsv, (u64)-1, NULL);
212 kfree(rsv);
282 * If we are the delayed_rsv then push to the global rsv, otherwise dump
283 * into the delayed rsv if it is not full.
333 * The global block rsv is based on the size of the extent tree, the
516 "BTRFS: block rsv %d returned %d\n",
551 struct btrfs_block_rsv *rsv)
560 spin_lock(&rsv->lock);
561 if (rsv->reserved < needed_bytes)
565 spin_unlock(&rsv->lock);