mm-increase-usage-of-folio_next_index-helper.patch removed from -mm tree
The quilt patch titled
Subject: mm: increase usage of folio_next_index() helper
has been removed from the -mm tree. Its filename was
mm-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: Sidhartha Kumar <[email protected]>
Subject: mm: increase usage of folio_next_index() helper
Date: Tue, 27 Jun 2023 10:43:49 -0700
Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using the existing helper folio_next_index().
Signed-off-by Sidhartha Kumar <[email protected]>
Suggested-by Christoph Hellwig <[email protected]>
Reviewed-by Christoph Hellwig <[email protected]>
Cc Andreas Dilger <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Theodore Ts'o <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/ext4/inode.c | 4 ++-- mm/filemap.c | 8 ++++---- mm/memory.c | 2 +- mm/shmem.c | 2 +- mm/truncate.c | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-)
fs/ext4/inode.c renamed from fs/ext4/inode.c~mm-increase-usage-of-folio_next_index-helper +2 -2
@@ -1569,7 +1569,7 @@ static void mpage_release_unused_pages(sif (folio->index < mpd->first_page)continue ; -if (folio->index +folio_nr_pages (folio) -1 > end) +if (folio_next_index (folio) -1 > end)continue ;BUG_ON (!folio_test_locked (folio));BUG_ON (folio_test_writeback (folio));
@@ -2455,7 +2455,7 @@ static int mpage_prepare_extent_to_map(sif (mpd->map.m_len ==0 ) mpd->first_page = folio->index; - mpd->next_page = folio->index +folio_nr_pages (folio); + mpd->next_page =folio_next_index (folio);/* * Writeout when we cannot modify metadata is simple. * Just submit the page. For data=journal mode we
mm/filemap.c renamed from mm/filemap.c~mm-increase-usage-of-folio_next_index-helper +4 -4
@@ -2075,7 +2075,7 @@ unsigned find_lock_entries(struct addresif (!xa_is_value (folio)) {if (folio->index < *start) goto put; -if (folio->index +folio_nr_pages (folio) -1 > end) +if (folio_next_index (folio) -1 > end) goto put;if (!folio_trylock (folio)) goto put;
@@ -2174,7 +2174,7 @@ bool folio_more_pages(struct folio *folireturn false;if (index >= max)return false; -return index < folio->index +folio_nr_pages (folio) -1 ; +return index <folio_next_index (folio) -1 ; }/**
@@ -2242,7 +2242,7 @@ update_start:if (folio_test_hugetlb (folio)) *start = folio->index +1 ;else - *start = folio->index +folio_nr_pages (folio); + *start =folio_next_index (folio); } out:rcu_read_unlock ();
@@ -2359,7 +2359,7 @@ static void filemap_get_read_batch(strucbreak ;if (folio_test_readahead (folio))break ; -xas_advance (&xas, folio->index +folio_nr_pages (folio) -1 ); +xas_advance (&xas,folio_next_index (folio) -1 );continue ; put_folio:folio_put (folio);
mm/memory.c renamed from mm/memory.c~mm-increase-usage-of-folio_next_index-helper +1 -1
@@ -3495,7 +3495,7 @@ void unmap_mapping_folio(struct folio *fVM_BUG_ON (!folio_test_locked (folio)); first_index = folio->index; - last_index = folio->index +folio_nr_pages (folio) -1 ; + last_index =folio_next_index (folio) -1 ; details.even_cows = false; details.single_folio = folio;
mm/shmem.c renamed from mm/shmem.c~mm-increase-usage-of-folio_next_index-helper +1 -1
@@ -970,7 +970,7 @@ static void shmem_undo_range(struct inod same_folio = lend <folio_pos (folio) +folio_size (folio);folio_mark_dirty (folio);if (!truncate_inode_partial_folio (folio, lstart, lend)) { - start = folio->index +folio_nr_pages (folio); + start =folio_next_index (folio);if (same_folio) end = folio->index; }
mm/truncate.c renamed from mm/truncate.c~mm-increase-usage-of-folio_next_index-helper +1 -1
@@ -378,7 +378,7 @@ void truncate_inode_pages_range(struct aif (!IS_ERR (folio)) { same_folio = lend <folio_pos (folio) +folio_size (folio);if (!truncate_inode_partial_folio (folio, lstart, lend)) { - start = folio->index +folio_nr_pages (folio); + start =folio_next_index (folio);if (same_folio) end = folio->index; }
_
Patches currently in -mm which might be from [email protected] are