The patch titled Subject: mm:page-writeback: use folio_next_index() helper in writeback_iter() has been added to the -mm mm-unstable branch. Its filename is mm-page-writeback-use-folio_next_index-helper-in-writeback_iter.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-page-writeback-use-folio_next_index-helper-in-writeback_iter.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Yuesong Li <liyuesong@xxxxxxxx> Subject: mm:page-writeback: use folio_next_index() helper in writeback_iter() Date: Wed, 21 Aug 2024 14:31:12 +0800 Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using the existing helper folio_next_index(). Link: https://lkml.kernel.org/r/20240821063112.4053157-1-liyuesong@xxxxxxxx Signed-off-by: Yuesong Li <liyuesong@xxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/page-writeback.c~mm-page-writeback-use-folio_next_index-helper-in-writeback_iter +++ a/mm/page-writeback.c @@ -2612,7 +2612,7 @@ struct folio *writeback_iter(struct addr done: if (wbc->range_cyclic) - mapping->writeback_index = folio->index + folio_nr_pages(folio); + mapping->writeback_index = folio_next_index(folio); folio_batch_release(&wbc->fbatch); return NULL; } _ Patches currently in -mm which might be from liyuesong@xxxxxxxx are mm-page-writeback-use-folio_next_index-helper-in-writeback_iter.patch