]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/swap: Add folio_rotate_reclaimable()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 8 Dec 2020 06:25:39 +0000 (01:25 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 13 Aug 2021 18:42:11 +0000 (14:42 -0400)
commitf4e6f4d9aebcb308767711b51f4616a18a12fd3d
tree415f0fe0912c65aac7772c0f84fe489513a3d28b
parent844a782b0496062221b40ac7ad0815c06a90b047
mm/swap: Add folio_rotate_reclaimable()

Convert rotate_reclaimable_page() to folio_rotate_reclaimable().  This
eliminates all five of the calls to compound_head() in this function,
saving 75 bytes at the cost of adding 15 bytes to its one caller,
end_page_writeback().  We also save 36 bytes from pagevec_move_tail_fn()
due to using folios there.  Net 96 bytes savings.

Also move its declaration to mm/internal.h as it's only used by filemap.c.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: David Howells <dhowells@redhat.com>
include/linux/swap.h
mm/filemap.c
mm/internal.h
mm/page_io.c
mm/swap.c