Searched refs:limit_pages (Results 1 – 3 of 3) sorted by relevance
116 unsigned long limit_pages; member
260 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()
234 unsigned long locked_pages, limit_pages; in mlock_future_ok() local242 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()