mm-filemap-increase-usage-of-folio_next_index-helper.patch removed from -mm tree
The quilt patch titled
Subject: mm/filemap: increase usage of folio_next_index() helper
has been removed from the -mm tree. Its filename was
mm-filemap-increase-usage-of-folio_next_index-helper.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: Minjie Du <[email protected]>
Subject: mm/filemap: increase usage of folio_next_index() helper
Date: Thu, 21 Sep 2023 16:15:35 +0800
Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using the existing helper folio_next_index() in filemap_map_pages().
Signed-off-by Minjie Du <[email protected]>
Reviewed-by Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by Yin Fengwei <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/filemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/filemap.c renamed from mm/filemap.c~mm-filemap-increase-usage-of-folio_next_index-helper +1 -1
@@ -3591,7 +3591,7 @@ vm_fault_t filemap_map_pages(struct vm_f addr += (xas.xa_index - last_pgoff) <<PAGE_SHIFT ; vmf->pte += xas.xa_index - last_pgoff; last_pgoff = xas.xa_index; - end = folio->index +folio_nr_pages (folio) -1 ; + end =folio_next_index (folio) -1 ; nr_pages =min (end, end_pgoff) - xas.xa_index +1 ;if (!folio_test_large (folio))
_
Patches currently in -mm which might be from [email protected] are