]> www.infradead.org Git - users/willy/pagecache.git/commit
mm/writeback: Add pageset_write_one pageset-5.15
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 9 Mar 2021 18:48:03 +0000 (13:48 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 28 Aug 2021 02:52:26 +0000 (22:52 -0400)
commitdc185ab836d41729f15b2925a59c7dc29ae72377
treecdb6840f4cccce2178bf852f8251a72230a0bbf2
parentbf40615af5f6ed587c1d164c49972177f9304a43
mm/writeback: Add pageset_write_one

Transform write_one_page() into pageset_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 pageset_write_one() is 101 bytes
smaller than write_one_page(), the inlined call to page_pageset() 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