mm-filemap-use-folio_next_index-for-start.patch removed from -mm tree
The quilt patch titled
Subject: mm/filemap: use folio_next_index() for start
has been removed from the -mm tree. Its filename was
mm-filemap-use-folio_next_index-for-start.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: tanze <[email protected]>
Subject: mm/filemap: use folio_next_index() for start
Date: Mon, 1 Jun 2026 19:04:23 +0800
Use folio_next_index() instead of open-coding folio->index + folio_nr_pages(folio) when updating @start in filemap_get_folios_contig(), filemap_get_folios_tag(), and filemap_get_folios_dirty().
Signed-off-by tanze <[email protected]>
Reviewed-by Jan Kara <[email protected]>
Reviewed-by Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/filemap.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
mm/filemap.c renamed from mm/filemap.c~mm-filemap-use-folio_next_index-for-start +3 -6
@@ -2284,8 +2284,7 @@ unsigned filemap_get_folios_contig(struc goto put_folio;if (!folio_batch_add (fbatch, folio)) { - nr =folio_nr_pages (folio); - *start = folio->index + nr; + *start =folio_next_index (folio); goto out; }xas_advance (&xas,folio_next_index (folio) -1 );
@@ -2345,8 +2344,7 @@ unsigned filemap_get_folios_tag(struct aif (xa_is_value (folio))continue ;if (!folio_batch_add (fbatch, folio)) { -unsigned long nr =folio_nr_pages (folio); - *start = folio->index + nr; + *start =folio_next_index (folio); goto out; } }
@@ -2404,8 +2402,7 @@ unsigned filemap_get_folios_dirty(struct } }if (!folio_batch_add (fbatch, folio)) { -unsigned long nr =folio_nr_pages (folio); - *start = folio->index + nr; + *start =folio_next_index (folio); goto out; } }
_
Patches currently in -mm which might be from [email protected] are