]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm/rmap: Turn page_lock_anon_vma_read() into folio_lock_anon_vma_read()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 2 Feb 2022 04:33:08 +0000 (23:33 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 17:01:35 +0000 (13:01 -0400)
commit9595d76942b8714627d670a7e7ae543812c731ae
treefebd0a334505f4e11fcd427b96e740ab0548a3cc
parentc8423186078312d344474bcb9e2b1ce0a78dbde4
mm/rmap: Turn page_lock_anon_vma_read() into folio_lock_anon_vma_read()

Add back page_lock_anon_vma_read() as a wrapper.  This saves a few calls
to compound_head().  If any callers were passing a tail page before,
this would have failed to lock the anon VMA as page->mapping is not
valid for tail pages.

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