]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/filemap: Add __folio_lock_or_retry()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 19 Mar 2021 01:39:45 +0000 (21:39 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 13 Aug 2021 18:23:53 +0000 (14:23 -0400)
commit844a782b0496062221b40ac7ad0815c06a90b047
treebf5c37545213c57e4debecbd84d794b2a96440c7
parent7e64270772f952feb83d16f7625ed1352ac52a03
mm/filemap: Add __folio_lock_or_retry()

Convert __lock_page_or_retry() to __folio_lock_or_retry().  This actually
saves 4 bytes in the only caller of lock_page_or_retry() (due to better
register allocation) and saves the 14 byte cost of calling page_folio()
in __folio_lock_or_retry() for a total saving of 18 bytes.  Also use
a bool for the return type.

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>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/pagemap.h
mm/filemap.c
mm/memory.c