commit | ca891f41c4c7921a03dfd0fa1faf324393724480 | [log] [tgz] |
---|---|---|
author | Matthew Wilcox (Oracle) <[email protected]> | Mon Jun 28 19:41:22 2021 -0700 |
committer | Linus Torvalds <[email protected]> | Tue Jun 29 10:53:53 2021 -0700 |
tree | 64ad2c7daa9c74f4e43d4cd85366278baab66533 | |
parent | 0f2317e34e2c7b97efd4600122115410795ebeea [diff] [blame] |
mm: constify get_pfnblock_flags_mask and get_pfnblock_migratetype The struct page is not modified by these routines, so it can be marked const. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Reviewed-by: William Kucharski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
diff --git a/include/linux/pageblock-flags.h b/include/linux/pageblock-flags.h index fff52ad..973fd73 100644 --- a/include/linux/pageblock-flags.h +++ b/include/linux/pageblock-flags.h
@@ -54,7 +54,7 @@ extern unsigned int pageblock_order; /* Forward declaration */ struct page; -unsigned long get_pfnblock_flags_mask(struct page *page, +unsigned long get_pfnblock_flags_mask(const struct page *page, unsigned long pfn, unsigned long mask);