Searched refs:mult_perc (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/fs/btrfs/ |
H A D | misc.h | 41 static inline u64 mult_perc(u64 num, u32 percent) in mult_perc() function
|
H A D | block-rsv.c | 237 num_bytes = mult_perc(block_rsv->size, min_percent); in btrfs_block_rsv_check()
|
H A D | space-info.c | 844 thresh = mult_perc(space_info->total_bytes, 90); in need_preemptive_reclaim() 962 min_bytes = mult_perc(global_rsv->size, 10); in steal_from_global_rsv()
|
H A D | block-group.c | 1773 thresh = mult_perc(bg->length, reclaim_thresh); in should_reclaim_block_group() 3837 thresh = max_t(u64, SZ_64M, mult_perc(thresh, 1)); in should_alloc_chunk() 3843 if (bytes_used + SZ_2M < mult_perc(sinfo->total_bytes, 80)) in should_alloc_chunk()
|
H A D | volumes.c | 3647 user_thresh_min = mult_perc(cache->length, bargs->usage_min); in chunk_usage_range_filter() 3654 user_thresh_max = mult_perc(cache->length, bargs->usage_max); in chunk_usage_range_filter() 3678 user_thresh = mult_perc(cache->length, bargs->usage); in chunk_usage_filter() 5137 ctl->max_chunk_size = min(mult_perc(fs_devices->total_rw_bytes, 10), in init_alloc_chunk_ctl_policy_regular() 5168 limit = max(round_down(mult_perc(fs_devices->total_rw_bytes, 10), in init_alloc_chunk_ctl_policy_zoned()
|
H A D | sysfs.c | 775 val = min(mult_perc(fs_info->fs_devices->total_rw_bytes, 10), val); in btrfs_chunk_size_store()
|
H A D | free-space-cache.c | 2743 mult_perc(block_group->zone_capacity, bg_reclaim_threshold)) { in __btrfs_add_free_space_zoned()
|