Lines Matching refs:global_rsv
968 struct btrfs_block_rsv *global_rsv = &fs_info->global_block_rsv; in steal_from_global_rsv() local
974 if (global_rsv->space_info != space_info) in steal_from_global_rsv()
977 spin_lock(&global_rsv->lock); in steal_from_global_rsv()
978 min_bytes = div_factor(global_rsv->size, 1); in steal_from_global_rsv()
979 if (global_rsv->reserved < min_bytes + ticket->bytes) { in steal_from_global_rsv()
980 spin_unlock(&global_rsv->lock); in steal_from_global_rsv()
983 global_rsv->reserved -= ticket->bytes; in steal_from_global_rsv()
988 if (global_rsv->reserved < global_rsv->size) in steal_from_global_rsv()
989 global_rsv->full = 0; in steal_from_global_rsv()
990 spin_unlock(&global_rsv->lock); in steal_from_global_rsv()
1154 struct btrfs_block_rsv *global_rsv; in btrfs_preempt_reclaim_metadata_space() local
1163 global_rsv = &fs_info->global_block_rsv; in btrfs_preempt_reclaim_metadata_space()
1171 u64 global_rsv_size = global_rsv->reserved; in btrfs_preempt_reclaim_metadata_space()