[PATCH v4 3/4] mm: Support batched unmap for lazyfree large folios during reclamation
Barry Song
21cnbao at gmail.com
Thu Jun 26 14:46:37 PDT 2025
On Thu, Jun 26, 2025 at 9:29 PM Lance Yang <ioworker0 at gmail.com> wrote:
>
[...]
> +
> + /*
> + * If we are sure that we batched the entire folio and cleared
> + * all PTEs, we can just optimize and stop right here.
> + */
> + if (nr_pages == folio_nr_pages(folio))
David also mentioned if (nr_pages > 1 && nr_pages == folio_nr_pages(folio)).
I assume it’s still fine when nr_pages == 1 for small folios? No?
> goto walk_done;
> continue;
> walk_abort:
> --
>
Thanks,
Lance
More information about the linux-arm-kernel
mailing list