From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,mgorman@techsingularity.net,hannes@cmpxchg.org,bharata@amd.com,yuzhao@google.com,akpm@linux-foundation.org
Subject: [folded-merged] mm-truncate-batch-clear-shadow-entries-v2.patch removed from -mm tree
Date: Fri, 12 Jul 2024 15:48:51 -0700 [thread overview]
Message-ID: <20240712224851.CF525C32782@smtp.kernel.org> (raw)
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
reply other threads:[~2024-07-12 22:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240712224851.CF525C32782@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=bharata@amd.com \
--cc=hannes@cmpxchg.org \
--cc=mgorman@techsingularity.net \
--cc=mm-commits@vger.kernel.org \
--cc=yuzhao@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.