diff options
| author | 2025-05-28 15:20:13 -0400 | |
|---|---|---|
| committer | 2025-07-09 22:41:54 -0700 | |
| commit | cdf48aa83279d4369ec6195f716468950c4440ca (patch) | |
| tree | 654af5d92620431fd21a17b76d59ca682ea1537b /include/linux/mmdebug.h | |
| parent | tools/testing/selftests: add VMA merge tests for KSM merge (diff) | |
| download | linux-rng-cdf48aa83279d4369ec6195f716468950c4440ca.tar.xz linux-rng-cdf48aa83279d4369ec6195f716468950c4440ca.zip | |
mm/hugetlb: convert hugetlb_change_protection() to folios
The for loop inside hugetlb_change_protection() increments by the huge
page size:
psize = huge_page_size(h);
for (; address < end; address += psize)
so we are operating on the head page of the huge pages between address and
end. We can safely convert the struct page usage to struct folio.
Link: https://lkml.kernel.org/r/20250528192013.91130-1-sidhartha.kumar@oracle.com
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/mmdebug.h')
0 files changed, 0 insertions, 0 deletions
