Searched refs:global_rsv (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/fs/btrfs/
H A Dextent-tree.c2657 struct btrfs_block_rsv *global_rsv; btrfs_check_space_for_delayed_refs() local
2672 global_rsv = &root->fs_info->global_block_rsv; btrfs_check_space_for_delayed_refs()
2678 if (global_rsv->space_info->full) { btrfs_check_space_for_delayed_refs()
2683 spin_lock(&global_rsv->lock); btrfs_check_space_for_delayed_refs()
2684 if (global_rsv->reserved <= num_bytes + num_dirty_bgs_bytes) btrfs_check_space_for_delayed_refs()
2686 spin_unlock(&global_rsv->lock); btrfs_check_space_for_delayed_refs()
4063 struct btrfs_block_rsv *global_rsv = &root->fs_info->global_block_rsv; should_alloc_chunk() local
4074 * global_rsv, it doesn't change except when the transaction commits. should_alloc_chunk()
4077 num_allocated += calc_global_rsv_need_space(global_rsv); should_alloc_chunk()
4251 struct btrfs_block_rsv *global_rsv = &root->fs_info->global_block_rsv; can_overcommit() local
4266 spin_lock(&global_rsv->lock); can_overcommit()
4267 space_size = calc_global_rsv_need_space(global_rsv); can_overcommit()
4268 spin_unlock(&global_rsv->lock); can_overcommit()
4795 struct btrfs_block_rsv *global_rsv = reserve_metadata_bytes() local
4798 if (block_rsv != global_rsv && reserve_metadata_bytes()
4799 !block_rsv_use_bytes(global_rsv, orig_bytes)) reserve_metadata_bytes()
4870 struct btrfs_block_rsv *global_rsv = &fs_info->global_block_rsv; btrfs_cond_migrate_bytes() local
4873 if (global_rsv->space_info != dest->space_info) btrfs_cond_migrate_bytes()
4876 spin_lock(&global_rsv->lock); btrfs_cond_migrate_bytes()
4877 min_bytes = div_factor(global_rsv->size, min_factor); btrfs_cond_migrate_bytes()
4878 if (global_rsv->reserved < min_bytes + num_bytes) { btrfs_cond_migrate_bytes()
4879 spin_unlock(&global_rsv->lock); btrfs_cond_migrate_bytes()
4882 global_rsv->reserved -= num_bytes; btrfs_cond_migrate_bytes()
4883 if (global_rsv->reserved < global_rsv->size) btrfs_cond_migrate_bytes()
4884 global_rsv->full = 0; btrfs_cond_migrate_bytes()
4885 spin_unlock(&global_rsv->lock); btrfs_cond_migrate_bytes()
5062 struct btrfs_block_rsv *global_rsv = &root->fs_info->global_block_rsv; btrfs_block_rsv_release() local
5063 if (global_rsv == block_rsv || btrfs_block_rsv_release()
5064 block_rsv->space_info != global_rsv->space_info) btrfs_block_rsv_release()
5065 global_rsv = NULL; btrfs_block_rsv_release()
5066 block_rsv_release_bytes(root->fs_info, block_rsv, global_rsv, btrfs_block_rsv_release()
5247 struct btrfs_block_rsv *global_rsv = &root->fs_info->global_block_rsv; btrfs_subvolume_reserve_metadata() local
5268 ret = btrfs_block_rsv_migrate(global_rsv, rsv, num_bytes); btrfs_subvolume_reserve_metadata()
5983 struct btrfs_block_rsv *global_rsv = &fs_info->global_block_rsv; unpin_extent_range() local
6019 if (!readonly && global_rsv->space_info == space_info) { unpin_extent_range()
6020 spin_lock(&global_rsv->lock); unpin_extent_range()
6021 if (!global_rsv->full) { unpin_extent_range()
6022 len = min(len, global_rsv->size - unpin_extent_range()
6023 global_rsv->reserved); unpin_extent_range()
6024 global_rsv->reserved += len; unpin_extent_range()
6026 if (global_rsv->reserved >= global_rsv->size) unpin_extent_range()
6027 global_rsv->full = 1; unpin_extent_range()
6029 spin_unlock(&global_rsv->lock); unpin_extent_range()
7517 struct btrfs_block_rsv *global_rsv = &root->fs_info->global_block_rsv; use_block_rsv() local
7558 block_rsv->space_info == global_rsv->space_info) { use_block_rsv()
7559 ret = block_rsv_use_bytes(global_rsv, blocksize); use_block_rsv()
7561 return global_rsv; use_block_rsv()
H A Dinode.c5068 struct btrfs_block_rsv *rsv, *global_rsv; btrfs_evict_inode() local
5118 global_rsv = &root->fs_info->global_block_rsv; btrfs_evict_inode()
5174 ret = btrfs_block_rsv_migrate(global_rsv, rsv, btrfs_evict_inode()

Completed in 163 milliseconds