Skip to contentSkip to conversation

readahead-use-folio_nr_pages-instead-of-shift-operation.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 20, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: readahead: use folio_nr_pages() instead of shift operation
has been removed from the -mm tree. Its filename was
readahead-use-folio_nr_pages-instead-of-shift-operation.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Chi Zhiling <[email protected]>
Subject: readahead: use folio_nr_pages() instead of shift operation
Date: Thu, 10 Jul 2025 14:04:51 +0800

folio_nr_pages() is faster helper function to get the number of pages when NR_PAGES_IN_LARGE_FOLIO is enabled.

---

 mm/readahead.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/readahead.c renamed from mm/readahead.c~readahead-use-folio_nr_pages-instead-of-shift-operation +1 -1
@@ -649,7 +649,7 @@ void page_cache_async_ra(struct readahea
 	 * Ramp up sizes, and push forward the readahead window.
 	 */
 	expected = round_down(ra->start + ra->size - ra->async_size,
-			1UL << folio_order(folio));
+			folio_nr_pages(folio));
 	if (index == expected) {
 		ra->start += ra->size;
 		/*

_

Patches currently in -mm which might be from [email protected] are