From: "David Hildenbrand (Arm)" <david@kernel.org>
To: Alexandre Ghiti <alex@ghiti.fr>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Barry Song <baohua@kernel.org>, Kairui Song <kasong@tencent.com>,
Chris Li <chrisl@kernel.org>, Nhat Pham <nphamcs@gmail.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Yosry Ahmed <yosry@kernel.org>,
Chengming Zhou <chengming.zhou@linux.dev>,
Baoquan He <baoquan.he@linux.dev>,
Kemeng Shi <shikemeng@huaweicloud.com>,
Youngjun Park <youngjun.park@lge.com>,
"Liam R . Howlett" <liam@infradead.org>,
Vlastimil Babka <vbabka@kernel.org>,
Mike Rapoport <rppt@kernel.org>,
Suren Baghdasaryan <surenb@google.com>,
Michal Hocko <mhocko@suse.com>
Subject: Re: [PATCH v2] mm: free the swap slot of a dirty swapin folio
Date: Wed, 2 Dec 2026 14:50:01 +0100 [thread overview]
Message-ID: <7a9950f6-416f-400f-9895-ac9e2fa2fc72@kernel.org> (raw)
In-Reply-To: <aw3AUYhqsYnYUejg@devbig011.atn3.facebook.com>
> I'm not sure this comment really helps explain why being dirty matters
> here, which I think is the interesting insight captured by your commit
> message. The idea is that dirty folio == swap slot is stale, right?
>
> What about:
>
> /*
> * Free the swapcache if the folio is dirty (it has diverged from its
> * swap slot) or if an exclusive write will make it diverge.
> */
I'll queue it as is for now. Having the folio dirty naturally implies that the
data on disk is old and we need another writeback + cannot easily drop the folio.
Thanks for the review, appreciated!
--
Cheers,
David
next prev parent reply other threads:[~2026-12-02 13:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 14:23 [PATCH v2] mm: free the swap slot of a dirty swapin folio Alexandre Ghiti
2026-11-29 10:27 ` David Hildenbrand (Arm)
2026-11-30 18:36 ` Joshua Hahn
2026-12-02 13:50 ` David Hildenbrand (Arm) [this message]
2026-11-30 19:11 ` Nhat Pham
2026-12-02 13:50 ` David Hildenbrand (Arm)
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=7a9950f6-416f-400f-9895-ac9e2fa2fc72@kernel.org \
--to=david@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=alex@ghiti.fr \
--cc=baohua@kernel.org \
--cc=baoquan.he@linux.dev \
--cc=chengming.zhou@linux.dev \
--cc=chrisl@kernel.org \
--cc=hannes@cmpxchg.org \
--cc=kasong@tencent.com \
--cc=liam@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=nphamcs@gmail.com \
--cc=rppt@kernel.org \
--cc=shikemeng@huaweicloud.com \
--cc=surenb@google.com \
--cc=vbabka@kernel.org \
--cc=yosry@kernel.org \
--cc=youngjun.park@lge.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.