aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2024-02-27 19:23:34 +0000
committerAndrew Morton <[email protected]>2024-03-06 21:04:18 +0000
commit29cfe7556bfd6be043b6eb602a29c89d43565d71 (patch)
tree13dcb94af41a8619e9800d0af7c9978cb39b314a /mm/hugetlb.c
parentmm: constify testing page/folio flags (diff)
downloadkernel-29cfe7556bfd6be043b6eb602a29c89d43565d71.tar.gz
kernel-29cfe7556bfd6be043b6eb602a29c89d43565d71.zip
mm: constify more page/folio tests
Constify the flag tests that aren't automatically generated and the tests that look like flag tests but are more complicated. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 418d66953224..bb17e5c22759 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -2164,9 +2164,9 @@ static bool prep_compound_gigantic_folio_for_demote(struct folio *folio,
* transparent huge pages. See the PageTransHuge() documentation for more
* details.
*/
-int PageHuge(struct page *page)
+int PageHuge(const struct page *page)
{
- struct folio *folio;
+ const struct folio *folio;
if (!PageCompound(page))
return 0;