Skip to contentSkip to conversation

readahead-drop-dead-code-in-page_cache_ra_order.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 29, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: readahead: drop dead code in page_cache_ra_order()
has been removed from the -mm tree. Its filename was
readahead-drop-dead-code-in-page_cache_ra_order.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: Jan Kara <[email protected]>
Subject: readahead: drop dead code in page_cache_ra_order()
Date: Tue, 25 Jun 2024 12:18:56 +0200

page_cache_ra_order() scales folio order down so that is fully fits within readahead window. Thus the code handling the case where we walked past the readahead window is a dead code. Remove it.

---

 mm/readahead.c |    5 -----
 1 file changed, 5 deletions(-)
mm/readahead.c renamed from mm/readahead.c~readahead-drop-dead-code-in-page_cache_ra_order +0 -5
@@ -525,11 +525,6 @@ void page_cache_ra_order(struct readahea
 		index += 1UL << order;
 	}
 
-	if (index > limit) {
-		ra->size += index - limit - 1;
-		ra->async_size += index - limit - 1;
-	}
-
 	read_pages(ractl);
 	filemap_invalidate_unlock_shared(mapping);
 	memalloc_nofs_restore(nofs);

_

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