Home
last modified time | relevance | path

Searched refs:ub_mem2zram_ratio (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/mm/
Dzswapd_control.c36 unsigned int ub_mem2zram_ratio; member
326 atomic_set(&memcg->memcg_reclaimed.ub_mem2zram_ratio, in zswapd_memcgs_param_parse()
327 zswap_param[i].ub_mem2zram_ratio); in zswapd_memcgs_param_parse()
376 if (kstrtoint(token, 0, &zswap_param[i].ub_mem2zram_ratio) || in zswapd_memcgs_param_write()
377 zswap_param[i].ub_mem2zram_ratio > MAX_RATIO) in zswapd_memcgs_param_write()
410 unsigned int ub_mem2zram_ratio; in zswapd_single_memcg_param_write() local
416 if (sscanf(buf, "%u %u %u", &ub_mem2zram_ratio, &ub_zram2ufs_ratio, in zswapd_single_memcg_param_write()
420 if (ub_mem2zram_ratio > MAX_RATIO || ub_zram2ufs_ratio > MAX_RATIO || in zswapd_single_memcg_param_write()
424 atomic_set(&memcg->memcg_reclaimed.ub_mem2zram_ratio, in zswapd_single_memcg_param_write()
425 ub_mem2zram_ratio); in zswapd_single_memcg_param_write()
[all …]
Dzswapd.c615 if (zram_ratio >= (u32)atomic_read(&memcg->memcg_reclaimed.ub_mem2zram_ratio)) { in zswapd_shrink_anon()
Dmemcontrol.c5421 atomic_set(&memcg->memcg_reclaimed.ub_mem2zram_ratio, 60); in mem_cgroup_css_alloc()
/kernel/linux/linux-5.10/include/linux/
Dmemcg_policy.h37 atomic_t ub_mem2zram_ratio; member