* [folded-merged] mm-truncate-batch-clear-shadow-entries-v2.patch removed from -mm tree
@ 2024-07-12 22:48 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2024-07-12 22:48 UTC (permalink / raw)
To: mm-commits, mgorman, hannes, bharata, yuzhao, akpm
The quilt patch titled
Subject: mm-truncate-batch-clear-shadow-entries-v2
has been removed from the -mm tree. Its filename was
mm-truncate-batch-clear-shadow-entries-v2.patch
This patch was dropped because it was folded into mm-truncate-batch-clear-shadow-entries.patch
------------------------------------------------------
From: Yu Zhao <yuzhao@google.com>
Subject: mm-truncate-batch-clear-shadow-entries-v2
Date: Wed, 10 Jul 2024 00:09:33 -0600
restore comment, rename clear_shadow_entry() to clear_shadow_entries()
Link: https://lkml.kernel.org/r/20240710060933.3979380-1-yuzhao@google.com
Reported-by: Bharata B Rao <bharata@amd.com>
Closes: https://lore.kernel.org/d2841226-e27b-4d3d-a578-63587a3aa4f3@amd.com/
Tested-by: Bharata B Rao <bharata@amd.com>
Signed-off-by: Yu Zhao <yuzhao@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/truncate.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
--- a/mm/truncate.c~mm-truncate-batch-clear-shadow-entries-v2
+++ a/mm/truncate.c
@@ -39,11 +39,12 @@ static inline void __clear_shadow_entry(
xas_store(&xas, NULL);
}
-static void clear_shadow_entry(struct address_space *mapping,
- struct folio_batch *fbatch, pgoff_t *indices)
+static void clear_shadow_entries(struct address_space *mapping,
+ struct folio_batch *fbatch, pgoff_t *indices)
{
int i;
+ /* Handled by shmem itself, or for DAX we do nothing. */
if (shmem_mapping(mapping) || dax_mapping(mapping))
return;
@@ -507,7 +508,7 @@ unsigned long mapping_try_invalidate(str
}
if (xa_has_values)
- clear_shadow_entry(mapping, &fbatch, indices);
+ clear_shadow_entries(mapping, &fbatch, indices);
folio_batch_remove_exceptionals(&fbatch);
folio_batch_release(&fbatch);
@@ -657,7 +658,7 @@ int invalidate_inode_pages2_range(struct
}
if (xa_has_values)
- clear_shadow_entry(mapping, &fbatch, indices);
+ clear_shadow_entries(mapping, &fbatch, indices);
folio_batch_remove_exceptionals(&fbatch);
folio_batch_release(&fbatch);
_
Patches currently in -mm which might be from yuzhao@google.com are
mm-truncate-batch-clear-shadow-entries.patch
mm-mglru-fix-div-by-zero-in-vmpressure_calc_level.patch
mm-mglru-fix-overshooting-shrinker-memory.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-07-12 22:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-12 22:48 [folded-merged] mm-truncate-batch-clear-shadow-entries-v2.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.