linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] some cleanups for pageout()
@ 2025-09-18  3:46 Baolin Wang
  2025-09-18  3:46 ` [PATCH v2 1/2] mm: vmscan: remove folio_test_private() check in pageout() Baolin Wang
  2025-09-18  3:46 ` [PATCH v2 2/2] mm: vmscan: simplify the folio refcount " Baolin Wang
  0 siblings, 2 replies; 10+ messages in thread
From: Baolin Wang @ 2025-09-18  3:46 UTC (permalink / raw)
  To: akpm, hannes
  Cc: david, mhocko, zhengqi.arch, shakeel.butt, lorenzo.stoakes,
	hughd, willy, baolin.wang, linux-mm, linux-kernel

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-09-22  6:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-18  3:46 [PATCH v2 0/2] some cleanups for pageout() Baolin Wang
2025-09-18  3:46 ` [PATCH v2 1/2] mm: vmscan: remove folio_test_private() check in pageout() Baolin Wang
2025-09-18  6:00   ` David Hildenbrand
2025-09-18  9:36     ` Baolin Wang
2025-09-19  1:06       ` Shakeel Butt
2025-09-19  2:12         ` Baolin Wang
2025-09-19  8:00           ` David Hildenbrand
2025-09-22  5:32           ` Hugh Dickins
2025-09-22  6:02             ` Baolin Wang
2025-09-18  3:46 ` [PATCH v2 2/2] mm: vmscan: simplify the folio refcount " Baolin Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox