]> git.ipfire.org Git - thirdparty/linux.git/commit - mm/filemap.c
mm: Convert find_lock_entries() to use a folio_batch
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 7 Dec 2021 19:15:07 +0000 (14:15 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 8 Jan 2022 05:28:41 +0000 (00:28 -0500)
commit51dcbdac28d4dde915f78adf08bb3fac87f516e9
treec61ff3d6a485dd854e45daf3316a96bfc860a289
parent0e499ed3d7a216706e02eeded562627d3e69dcfd
mm: Convert find_lock_entries() to use a folio_batch

find_lock_entries() already only returned the head page of folios, so
convert it to return a folio_batch instead of a pagevec.  That cascades
through converting truncate_inode_pages_range() to
delete_from_page_cache_batch() and page_cache_delete_batch().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
fs/f2fs/f2fs.h
include/linux/pagemap.h
mm/filemap.c
mm/internal.h
mm/shmem.c
mm/truncate.c