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>
Tue, 1 Mar 2022 02:01:35 +0000 (21:01 -0500)
commitd8d47bcf71788d7720ae029936d1e003e8b387ff
tree4a6f8a680796f3e3d3f8d5e96578e4a61e86bc79
parent8339af1d0a188c3ce3f521cb44d2f8be51afaabf
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