]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Fri, 13 Aug 2021 18:47:58 +0000 (14:47 -0400)
commitbe8f72914261360e7703c7ead20a0b7f80aaccae
treeba66357c4424bc625d5a9d47b950dd6e377f0ed0
parenta75fdfd58af291176bcb8f1ec84122c9d30ce929
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