]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
userfault; expand folio use in mfill_atomic_install_pte()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 23 Apr 2024 22:55:36 +0000 (23:55 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:48 +0000 (17:53 -0700)
commita568b4126b20ebbc01914e12d083379720911799
tree102acd5a32a6d3aea72447e718f2c57dcb9322d4
parente18a9faf06c2407916326bf5f1112f5eba859331
userfault; expand folio use in mfill_atomic_install_pte()

Call page_folio() a little earlier so we can use folio_mapping()
instead of page_mapping(), saving a call to compound_head().

Link: https://lkml.kernel.org/r/20240423225552.4113447-6-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Eric Biggers <ebiggers@google.com>
Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/userfaultfd.c