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>
Mon, 27 Sep 2021 13:27:30 +0000 (09:27 -0400)
commita49d0c507759214a7cfd26555382c314db486792
treef4f571565c695d3bd8d10f623f0224ad5c54a7a1
parent490e016f229a79dc7551e7f0e989d2304416c189
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