]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/hugetlb: convert use of struct page to folio in __unmap_hugepage_range()
authorFan Ni <fan.ni@samsung.com>
Mon, 5 May 2025 18:22:44 +0000 (11:22 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 28 May 2025 02:38:26 +0000 (19:38 -0700)
commit05275594a311cd7427a64b8bcc6097645c0344af
tree8ef93a574061ffb2a6e9566dfe49cb000ababf76
parent7f4b6065d9a842721a04632fc219aa453d1b2f5c
mm/hugetlb: convert use of struct page to folio in __unmap_hugepage_range()

In __unmap_hugepage_range(), the "page" pointer always points to the first
page of a huge page, which guarantees there is a folio associating with
it.  Convert the "page" pointer to use folio.

Link: https://lkml.kernel.org/r/20250505182345.506888-6-nifan.cxl@gmail.com
Signed-off-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: "Vishal Moola (Oracle)" <vishal.moola@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c