diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-03-26 18:10:28 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-04-26 05:56:14 +0200 |
commit | b84fd2835c70e0149e2522fd746d3fb7049a1e19 (patch) | |
tree | c871a7024d1cea7c88edfbc994bd691d1e6646d5 /mm/rmap.c | |
parent | mm: make is_free_buddy_page() take a const argument (diff) | |
download | linux-b84fd2835c70e0149e2522fd746d3fb7049a1e19.tar.xz linux-b84fd2835c70e0149e2522fd746d3fb7049a1e19.zip |
mm: make page_mapped() take a const argument
None of the functions called by page_mapped() modify the page or folio, so
mark them all as const.
Link: https://lkml.kernel.org/r/20240326171045.410737-7-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | mm/rmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/rmap.c b/mm/rmap.c index 3746a5531018..d52759aa3ff7 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -1134,7 +1134,7 @@ int pfn_mkclean_range(unsigned long pfn, unsigned long nr_pages, pgoff_t pgoff, return page_vma_mkclean_one(&pvmw); } -int folio_total_mapcount(struct folio *folio) +int folio_total_mapcount(const struct folio *folio) { int mapcount = folio_entire_mapcount(folio); int nr_pages; |