]> git.ipfire.org Git - thirdparty/linux.git/commit - mm/page-writeback.c
mm/filemap: Add folio_wait_bit()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 4 Mar 2021 17:02:54 +0000 (12:02 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 27 Sep 2021 13:27:30 +0000 (09:27 -0400)
commit101c0bf67f50ca0e8b9da97b26f8dc7cb232b4d3
treeda83e363252d5d54335c5ab52d552c06d715f99c
parenta49d0c507759214a7cfd26555382c314db486792
mm/filemap: Add folio_wait_bit()

Rename wait_on_page_bit() to folio_wait_bit().  We must always wait on
the folio, otherwise we won't be woken up due to the tail page hashing
to a different bucket from the head page.

This commit shrinks the kernel by 770 bytes, mostly due to moving
the page waitqueue lookup into folio_wait_bit_common().

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>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
include/linux/pagemap.h
mm/filemap.c
mm/page-writeback.c