mm/rmap: Constify the rmap_walk_control argument
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 29 Jan 2022 21:16:54 +0000 (16:16 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 17:01:35 +0000 (13:01 -0400)
commit84fbbe21894bb9be8e16df408cbfbb9466fe396d
treee908796cd1ee4ef4f693807f82ebaaa6a15f9b8f
parent2f031c6f042cb8a9b221a8b6b80e69de5170f830
mm/rmap: Constify the rmap_walk_control argument

The rmap walking functions do not modify the rmap_walk_control, and
page_idle_clear_pte_refs() takes advantage of that to move construction
of the rmap_walk_control to compile time.  This lets us remove an
unclean cast.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/ksm.h
include/linux/rmap.h
mm/ksm.c
mm/page_idle.c
mm/rmap.c