]> www.infradead.org Git - users/jedix/linux-maple.git/commit
filemap: convert __readahead_batch() to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 2 Apr 2025 21:06:08 +0000 (22:06 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 May 2025 00:48:06 +0000 (17:48 -0700)
commit8dfc8cbf7b07da172b3a4c8bea064e84fbfa5d56
treec7497dd93f0dbe0a6e96818cd3967575337a758b
parent9c532d79082f9f2e58a45f2e92020dda65b7dedd
filemap: convert __readahead_batch() to use a folio

Extract folios from i_mapping, not pages.  Removes a hidden call to
compound_head(), a use of thp_nr_pages() and an unnecessary assertion that
we didn't find a tail page in the page cache.

Link: https://lkml.kernel.org/r/20250402210612.2444135-7-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/pagemap.h