mm,hugetlb: rename anon_rmap to new_anon_folio and make it boolean
authorOscar Salvador <osalvador@suse.de>
Mon, 30 Jun 2025 14:42:10 +0000 (16:42 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 13 Jul 2025 23:38:22 +0000 (16:38 -0700)
commitd531fd2ccf6b5ad95b718b5748e086f8d4aacf56
treeff92425204683439a0239f8d7c0369ea78cf5ede
parent9293fb4765527c0d2375eb441d045a5a75f5210d
mm,hugetlb: rename anon_rmap to new_anon_folio and make it boolean

anon_rmap is used to determine whether the new allocated folio is
anonymous.  Rename it to something more meaningul like new_anon_folio and
make it boolean, as we use it like that.

While we are at it, drop 'new_pagecache_folio' as 'new_anon_folio' is
enough to check whether we need to restore the consumed reservation.

Link: https://lkml.kernel.org/r/20250627102904.107202-4-osalvador@suse.de
Link: https://lkml.kernel.org/r/20250630144212.156938-4-osalvador@suse.de
Signed-off-by: Oscar Salvador <osalvador@suse.de>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Gavin Guo <gavinguo@igalia.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c