Re: [PATCH v2 3/5] mm,hugetlb: Rename anon_rmap to new_anon_folio and make it boolean

Oscar Salvador
2025-06-25T07:43:28Z

On Mon, Jun 23, 2025 at 04:13:17PM +0200, David Hildenbrand wrote:
> > - if (new_folio && !new_pagecache_folio)
> > + /* We only need to restore reservations for private mappings */
> > + if (new_folio && new_anon_folio)
>
> Could this be simplified to
>
> if (new_anon_folio) {

Yes, definitely, will do in the next version.

--
Oscar Salvador
SUSE Labs