]> www.infradead.org Git - users/hch/misc.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>
Thu, 7 Nov 2024 22:38:07 +0000 (14:38 -0800)
commit713da0b33b3e9d16272b57f4c44dee5c052be9b7
treef14ecf143015a993a9bdecad7d5e434d962b9c84
parent7d3e93eca3ca28bb5927b09b9b603c0c995bcd24
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