]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/filemap: Add __folio_lock_async()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 30 Dec 2020 22:58:40 +0000 (17:58 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 13 Aug 2021 18:21:44 +0000 (14:21 -0400)
commitcc31c224972d85e63ce9255544cd058e55d9ccb6
tree4b57c2ac3d931a405c5dff2868111bb6c3f74a74
parent71c53545234caafd28135ac2cf976a53a4c0c5b9
mm/filemap: Add __folio_lock_async()

There aren't any actual callers of lock_page_async(), so remove it.
Convert filemap_update_page() to call __folio_lock_async().

__folio_lock_async() is 21 bytes smaller than __lock_page_async(),
but the real savings come from using a folio in filemap_update_page(),
shrinking it from 515 bytes to 404 bytes, saving 110 bytes.  The text
shrinks by 132 bytes in total.

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>
fs/io_uring.c
include/linux/pagemap.h
mm/filemap.c