Home
last modified time | relevance | path

Searched refs:delayed_rsv (Results 1 - 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/fs/btrfs/
H A Dblock-rsv.c280 struct btrfs_block_rsv *delayed_rsv = &fs_info->delayed_refs_rsv; in btrfs_block_rsv_release() local
284 * If we are the delayed_rsv then push to the global rsv, otherwise dump in btrfs_block_rsv_release()
287 if (block_rsv == delayed_rsv) in btrfs_block_rsv_release()
289 else if (block_rsv != global_rsv && !delayed_rsv->full) in btrfs_block_rsv_release()
290 target = delayed_rsv; in btrfs_block_rsv_release()
H A Dspace-info.c577 struct btrfs_block_rsv *delayed_rsv = &fs_info->delayed_block_rsv; in may_commit_transaction() local
635 if (space_info != delayed_rsv->space_info) in may_commit_transaction()
638 spin_lock(&delayed_rsv->lock); in may_commit_transaction()
639 reclaim_bytes += delayed_rsv->reserved; in may_commit_transaction()
640 spin_unlock(&delayed_rsv->lock); in may_commit_transaction()
H A Ddelayed-ref.c101 struct btrfs_block_rsv *delayed_rsv = &fs_info->delayed_refs_rsv; in btrfs_update_delayed_refs_rsv() local
109 spin_lock(&delayed_rsv->lock); in btrfs_update_delayed_refs_rsv()
110 delayed_rsv->size += num_bytes; in btrfs_update_delayed_refs_rsv()
111 delayed_rsv->full = 0; in btrfs_update_delayed_refs_rsv()
112 spin_unlock(&delayed_rsv->lock); in btrfs_update_delayed_refs_rsv()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dblock-rsv.c278 struct btrfs_block_rsv *delayed_rsv = &fs_info->delayed_refs_rsv; in btrfs_block_rsv_release() local
282 * If we are the delayed_rsv then push to the global rsv, otherwise dump in btrfs_block_rsv_release()
285 if (block_rsv == delayed_rsv) in btrfs_block_rsv_release()
287 else if (block_rsv != global_rsv && !btrfs_block_rsv_full(delayed_rsv)) in btrfs_block_rsv_release()
288 target = delayed_rsv; in btrfs_block_rsv_release()
H A Ddelayed-ref.c86 struct btrfs_block_rsv *delayed_rsv = &fs_info->delayed_refs_rsv; in btrfs_update_delayed_refs_rsv() local
95 spin_lock(&delayed_rsv->lock); in btrfs_update_delayed_refs_rsv()
96 delayed_rsv->size += num_bytes; in btrfs_update_delayed_refs_rsv()
97 delayed_rsv->full = false; in btrfs_update_delayed_refs_rsv()
98 spin_unlock(&delayed_rsv->lock); in btrfs_update_delayed_refs_rsv()

Completed in 7 milliseconds