]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/writeback: Add folio_write_one
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 9 Mar 2021 18:48:03 +0000 (13:48 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 16 Aug 2021 03:04:07 +0000 (23:04 -0400)
commit1a90e9dae32ce26de43c1c5eddb3ecce27f2a640
treeb79b7bd6a124864c1dffde41dd1ed6d28e5d0dd3
parent7c468240484db4b402f54a919971ec04cb0a6e91
mm/writeback: Add folio_write_one

Transform write_one_page() into folio_write_one() and add a compatibility
wrapper.  Also move the declaration to pagemap.h as this is page cache
functionality that doesn't need to be used by the rest of the kernel.

Saves 58 bytes of kernel text.  While folio_write_one() is 101 bytes
smaller than write_one_page(), the inlined call to page_folio() expands
each caller.  There are fewer than ten callers so it doesn't seem worth
putting a wrapper in the core.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Howells <dhowells@redhat.com>
include/linux/mm.h
include/linux/pagemap.h
mm/page-writeback.c