From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org, jhubbard@nvidia.com,
peterx@redhat.com, akpm@linux-foundation.org
Subject: + mm-dont-skip-swap-entry-even-if-zap_details-specified-v5.patch added to -mm tree
Date: Thu, 17 Feb 2022 19:50:08 -0800 [thread overview]
Message-ID: <20220218035008.EED94C340E9@smtp.kernel.org> (raw)
The patch titled
Subject: mm-dont-skip-swap-entry-even-if-zap_details-specified-v5
has been added to the -mm tree. Its filename is
mm-dont-skip-swap-entry-even-if-zap_details-specified-v5.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-dont-skip-swap-entry-even-if-zap_details-specified-v5.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-dont-skip-swap-entry-even-if-zap_details-specified-v5.patch
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 and is updated
there every 3-4 working days
------------------------------------------------------
From: Peter Xu <peterx@redhat.com>
Subject: mm-dont-skip-swap-entry-even-if-zap_details-specified-v5
comment tweaks
Link: https://lkml.kernel.org/r/20220217060746.71256-2-peterx@redhat.com
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/memory.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
--- a/mm/memory.c~mm-dont-skip-swap-entry-even-if-zap_details-specified-v5
+++ a/mm/memory.c
@@ -1335,7 +1335,7 @@ zap_skip_check_mapping(struct zap_detail
if (should_zap_cows(details))
return false;
- /* E.g. zero page */
+ /* E.g. the caller passes NULL for the case of a zero page */
if (!page)
return false;
@@ -1421,11 +1421,7 @@ again:
}
if (!non_swap_entry(entry)) {
- /*
- * If this is a genuine swap entry, then it must be an
- * private anon page. If the caller wants to skip
- * COWed pages, ignore it.
- */
+ /* Genuine swap entry, hence a private anon page */
if (!should_zap_cows(details))
continue;
rss[MM_SWAPENTS]--;
@@ -1437,7 +1433,6 @@ again:
continue;
rss[mm_counter(page)]--;
} else if (is_hwpoison_entry(entry)) {
- /* If the caller wants to skip COWed pages, ignore it */
if (!should_zap_cows(details))
continue;
} else {
_
Patches currently in -mm which might be from peterx@redhat.com are
mm-fix-invalid-page-pointer-returned-with-foll_pin-gups.patch
mm-dont-skip-swap-entry-even-if-zap_details-specified.patch
mm-dont-skip-swap-entry-even-if-zap_details-specified-v5.patch
mm-rename-zap_skip_check_mapping-to-should_zap_page.patch
mm-change-zap_detailszap_mapping-into-even_cows.patch
mm-rework-swap-handling-of-zap_pte_range.patch
reply other threads:[~2022-02-18 3:50 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=20220218035008.EED94C340E9@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=jhubbard@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=peterx@redhat.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.