[PATCH 0/2] some cleanups for pageout()

Baolin Wang posted 2 patches 2 weeks, 6 days ago
There is a newer version of this series
mm/vmscan.c | 30 ++++--------------------------
1 file changed, 4 insertions(+), 26 deletions(-)
[PATCH 0/2] some cleanups for pageout()
Posted by Baolin Wang 2 weeks, 6 days ago
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.

Baolin Wang (2):
  mm: vmscan: remove folio_test_private() check in pageout()
  mm: vmscan: simplify the folio refcount check in pageout()

 mm/vmscan.c | 30 ++++--------------------------
 1 file changed, 4 insertions(+), 26 deletions(-)

-- 
2.43.7