• Home
  • Raw
  • Download

Lines Matching full:ratio

86 	u64 ratio = atomic64_read(&memcg->memcg_reclaimed.ub_ufs2zram_ratio);  in swapin_memcg()  local
89 if (req_size > swap_size * ratio) in swapin_memcg()
90 req_size = swap_size * ratio; in swapin_memcg()
109 u32 ratio = atomic_read(&memcg->memcg_reclaimed.ub_zram2ufs_ratio); in swapout_memcg() local
112 if (all_size * ratio <= swap_size) in swapout_memcg()
114 if (req_size > all_size * ratio - swap_size) in swapout_memcg()
115 req_size = all_size * ratio - swap_size; in swapout_memcg()
256 unsigned long long ratio; in get_memcg_anon_refault_status() local
279 ratio = div64_u64((anon_pagefault - memcg->memcg_reclaimed.reclaimed_pagefault) * in get_memcg_anon_refault_status()
281 if (ratio > atomic_read(&memcg->memcg_reclaimed.refault_threshold)) in get_memcg_anon_refault_status()
291 unsigned long long ratio; in get_area_anon_refault_status() local
299 ratio = div_u64((anon_pagefault - last_anon_pagefault) * percent_constant, in get_area_anon_refault_status()
301 anon_refault_ratio = ratio; in get_area_anon_refault_status()
303 if (ratio > get_area_anon_refault_threshold()) in get_area_anon_refault_status()
400 /* page to ratio */ in get_zram_current_watermark()
411 u64 ratio; in zram_watermark_ok() local
413 ratio = get_zram_current_watermark(); in zram_watermark_ok()
415 nr_wm = div_u64(totalram_pages() * ratio, percent_constant); in zram_watermark_ok()
723 u64 ratio; in zram_watermark_diff() local
725 ratio = get_zram_current_watermark(); in zram_watermark_diff()
727 nr_wm = div_u64(totalram_pages() * ratio, percent_constant); in zram_watermark_diff()