All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: "Yin, Fengwei" <fengwei.yin@intel.com>
Cc: Matthew Wilcox <willy@infradead.org>,
	<mm-commits@vger.kernel.org>, <hannes@cmpxchg.org>
Subject: Re: + zswap-make-zswap_load-take-a-folio-fix.patch added to mm-unstable branch
Date: Fri, 11 Aug 2023 10:18:03 -0700	[thread overview]
Message-ID: <20230811101803.a9efab4dfbe02b435ca1886a@linux-foundation.org> (raw)
In-Reply-To: <f860826b-3380-4afb-b5ab-7acc5ed3932f@intel.com>

On Fri, 11 Aug 2023 13:20:44 +0800 "Yin, Fengwei" <fengwei.yin@intel.com> wrote:

> 
> 
> On 8/11/2023 12:11 PM, Matthew Wilcox wrote:
> > On Thu, Aug 10, 2023 at 09:35:37AM -0700, Andrew Morton wrote:
> >>
> >> The patch titled
> >>      Subject: zswap: don't warn if none swapcache folio is passed to zswap_load
> >> has been added to the -mm mm-unstable branch.  Its filename is
> >>      zswap-make-zswap_load-take-a-folio-fix.patch
> > 
> > Disagree that this is a fix patch.  My original patch does:
> Agree with Matthew. The warning was not introduced by Matthew's patch.
> 
> > 
> > -       VM_WARN_ON_ONCE(!PageLocked(page));
> > -       VM_WARN_ON_ONCE(!PageSwapCache(page));
> > +       VM_WARN_ON_ONCE(!folio_test_locked(folio));
> > +       VM_WARN_ON_ONCE(!folio_test_swapcache(folio));
> > 
> > so I didn't add a new assertion, merely removed a call to
> > compound_head().  I think this patch deserves to stand on its own and
> > not be folded into mine.
> > 

OK, so it seems these assertions were added by hannes's "mm: kill
frontswap"
(https://lkml.kernel.org/r/20230717160227.GA867137@cmpxchg.org).  I'm
not really sure why - they don't appear to have been moved from
elsewhere.

So I'll requeue this as a fix against mm-kill-frontswap.patch.

The same two assertions were added to zswap_store().  Are they correct?


  reply	other threads:[~2023-08-11 17:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-10 16:35 + zswap-make-zswap_load-take-a-folio-fix.patch added to mm-unstable branch Andrew Morton
2023-08-11  4:11 ` Matthew Wilcox
2023-08-11  5:20   ` Yin, Fengwei
2023-08-11 17:18     ` Andrew Morton [this message]
2023-08-12  1:46       ` Yin, Fengwei
2023-08-12  2:08         ` Yosry Ahmed

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=20230811101803.a9efab4dfbe02b435ca1886a@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=fengwei.yin@intel.com \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=willy@infradead.org \
    /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.