• M
    mm/writeback: Add folio_write_one · 121703c1
    Matthew Wilcox (Oracle) 提交于
    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: NMatthew Wilcox (Oracle) <willy@infradead.org>
    Reviewed-by: NDavid Howells <dhowells@redhat.com>
    121703c1
pagemap.h 35.0 KB