mm: make page_mapped() take a const argument
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 26 Mar 2024 17:10:28 +0000 (17:10 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Apr 2024 03:56:14 +0000 (20:56 -0700)
commitb84fd2835c70e0149e2522fd746d3fb7049a1e19
treec871a7024d1cea7c88edfbc994bd691d1e6646d5
parent2ace5a670e2a0f3a6029bc6cf91dc14202074e7a
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>
include/linux/mm.h
mm/internal.h
mm/rmap.c