Displaying 1 result from an estimated 1 matches for "max_pages_per_loop".
2020 Jul 03
0
[RFC]: mm,power: introduce MADV_WIPEONSUSPEND
...alse;
> }
>
> +#ifdef VM_WIPEONSUSPEND
> +static void memory_cleanup_on_suspend(suspend_state_t state)
> +{
> + struct task_struct *p;
> + struct mm_struct *mm;
> + struct vm_area_struct *vma;
> + struct page *pages[32];
> + unsigned long max_pages_per_loop = ARRAY_SIZE(pages);
> +
> + /* Only care about states >= S3 */
> + if (state < PM_SUSPEND_MEM)
> + return;
> +
> + rcu_read_lock();
> + for_each_process(p) {
> + int gup_flags = FOLL_WRITE;
> +
> +...