]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: renovate page_address_in_vma()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 5 Oct 2024 20:01:14 +0000 (21:01 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:02 +0000 (21:29 -0700)
commit9a176391ebb13230d3bbec642bffb767b11e8e1c
tree1fc3981ebfbef02a8e3e5b22063b8d3cd96d511a
parentd4f3069a60ad30994147edc320ba5a40ba296222
mm: renovate page_address_in_vma()

This function doesn't modify any of its arguments, so if we make a few
other functions take const pointers, we can make page_address_in_vma()
take const pointers too.  All of its callers have the containing folio
already, so pass that in as an argument instead of recalculating it.  Also
add kernel-doc

Link: https://lkml.kernel.org/r/20241005200121.3231142-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/rmap.h
mm/internal.h
mm/ksm.c
mm/memory-failure.c
mm/mempolicy.c
mm/rmap.c
mm/util.c