[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cover.1758166683.git.baolin.wang@linux.alibaba.com>
Date: Thu, 18 Sep 2025 11:46:52 +0800
From: Baolin Wang <baolin.wang@...ux.alibaba.com>
To: akpm@...ux-foundation.org,
hannes@...xchg.org
Cc: david@...hat.com,
mhocko@...nel.org,
zhengqi.arch@...edance.com,
shakeel.butt@...ux.dev,
lorenzo.stoakes@...cle.com,
hughd@...gle.com,
willy@...radead.org,
baolin.wang@...ux.alibaba.com,
linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/2] some cleanups for pageout()
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() related logic to
simplify the logic of pageout(), as tmpfs/shmem and swapcache folios do
not use the PG_private flag.
Changes from v1:
- Re-write the commit message for patch 1 after discussing with Hugh. Thanks.
- Add a warning to catch this unlikely case.
- Add acked tags. Thanks.
Baolin Wang (2):
mm: vmscan: remove folio_test_private() check in pageout()
mm: vmscan: simplify the folio refcount check in pageout()
mm/vmscan.c | 28 +++++++---------------------
1 file changed, 7 insertions(+), 21 deletions(-)
--
2.43.7
Powered by blists - more mailing lists