]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/writeback: Add folio_wait_stable()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 4 Mar 2021 16:25:25 +0000 (11:25 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 13 Aug 2021 18:47:51 +0000 (14:47 -0400)
commita75fdfd58af291176bcb8f1ec84122c9d30ce929
treec339a807fb30199044915beb7a6ce922446dc850
parent6b69db27f9013bf95c7515855b3a9b2a1cc0ac41
mm/writeback: Add folio_wait_stable()

Move wait_for_stable_page() into the folio compatibility file.
folio_wait_stable() avoids a call to compound_head() and is 14 bytes
smaller than wait_for_stable_page() was.  The net text size grows by 16
bytes as a result of this patch.  We can also remove thp_head() as this
was the last user.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Reviewed-by: David Howells <dhowells@redhat.com>
include/linux/huge_mm.h
include/linux/pagemap.h
mm/folio-compat.c
mm/page-writeback.c