]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdbca0394a5b32a3afcf345d0a452f0e7f8351165
treee908796cd1ee4ef4f693807f82ebaaa6a15f9b8f
parent73f247e8e0074523c3328aa926b0bd1d3c58eb98
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