[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <g3seb57wsx2qn7tks33gudalcxfxk7ejq6cmkdbsfalb7sxoru@2esiwxtv7wia>
Date: Fri, 12 Sep 2025 09:16:30 -0700
From: Shakeel Butt <shakeel.butt@...ux.dev>
To: Baolin Wang <baolin.wang@...ux.alibaba.com>
Cc: akpm@...ux-foundation.org, hannes@...xchg.org, david@...hat.com,
mhocko@...nel.org, zhengqi.arch@...edance.com, lorenzo.stoakes@...cle.com,
hughd@...gle.com, willy@...radead.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] mm: vmscan: simplify the folio refcount check in
pageout()
On Fri, Sep 12, 2025 at 11:45:08AM +0800, Baolin Wang wrote:
> Since we no longer attempt to write back filesystem folios in pageout(),
> and only tmpfs/shmem folios and anonymous swapcache folios can be written
> back, we can remove the redundant folio_test_private() when checking the
> folio's refcount, as tmpfs/shmem and swapcache folios do not use the
> PG_private flag.
>
> While we're at it, we can open-code the folio refcount check instead of
> adding a simple helper that has only one user.
>
> Signed-off-by: Baolin Wang <baolin.wang@...ux.alibaba.com>
Acked-by: Shakeel Butt <shakeel.butt@...ux.dev>
Powered by blists - more mailing lists