mm/memory: pass folio into do_page_mkwrite()
authorSidhartha Kumar <sidhartha.kumar@oracle.com>
Tue, 11 Jul 2023 05:35:44 +0000 (22:35 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:12:21 +0000 (10:12 -0700)
commit86aa6998ad00af823de81d12d41d7063c14298a0
tree9ee5c67a22ce2c359e2fcd51a37e5122bcffe80c
parentd31155b8f29ce380f7816e54dee161db6d752909
mm/memory: pass folio into do_page_mkwrite()

Saves one implicit call to compound_head().

I'm not sure if I should change the name of the function to
do_folio_mkwrite() and update the description comment to reference a folio
as the vm_op is still called page_mkwrite.

Link: https://lkml.kernel.org/r/20230711053544.156617-1-sidhartha.kumar@oracle.com
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Suggested-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory.c