Home
last modified time | relevance | path

Searched refs:limit_pages (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/block/zram/
Dzram_drv.h116 unsigned long limit_pages; member
Dzram_drv.c260 zram->limit_pages = PAGE_ALIGN(limit) >> PAGE_SHIFT; in mem_limit_store()
1241 zram->limit_pages << PAGE_SHIFT, in mm_stat_show()
1575 if (zram->limit_pages && alloced_pages > zram->limit_pages) { in zram_write_page()
2132 zram->limit_pages = 0; in zram_reset_device()
/linux-6.12.1/mm/
Dmmap.c234 unsigned long locked_pages, limit_pages; in mlock_future_ok() local
242 limit_pages = rlimit(RLIMIT_MEMLOCK); in mlock_future_ok()
243 limit_pages >>= PAGE_SHIFT; in mlock_future_ok()
245 return locked_pages <= limit_pages; in mlock_future_ok()