Skip to content

Get rid of PG_reclaim and rename PG_dropbehind

Kirill A. Shutemov dri-devel intel-gfx linux-fsdevel linux-mm linux-trace-kernel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 14 repliesIn review
  2. v211 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- Condition folio_set_dropbehind() call in mapping_try_invalidate() on

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11mm/migrate: Transfer PG_dropbehind to the new foliomm/migrate.c+4 -01 reply
2/11drm/i915/gem: Convert __shmem_writeback() to foliosdrivers/gpu/drm/i915/gem/i915_gem_shmem.c+9 -93 replies
3/11drm/i915/gem: Use PG_dropbehind instead of PG_reclaimdrivers/gpu/drm/i915/gem/i915_gem_shmem.c+1 -31 reply
4/11mm/zswap: Use PG_dropbehind instead of PG_reclaimmm/zswap.c+2 -21 reply
5/11mm/truncate: Use folio_set_dropbehind() instead of deactivate_file_folio()mm/internal.h mm/swap.c mm/truncate.c+4 -921 reply
6/11mm/vmscan: Use PG_dropbehind instead of PG_reclaimmm/vmscan.c+3 -66 replies
7/11mm/vmscan: Use PG_dropbehind instead of PG_reclaim in shrink_folio_list()mm/vmscan.c+8 -220 replies
8/11mm/mglru: Check PG_dropbehind instead of PG_reclaim in lru_gen_folio_seq()include/linux/mm_inline.h+1 -20 replies
9/11mm: Remove PG_reclaimfs/fuse/dev.c fs/proc/page.c include/linux/mm_inline.h +10 more+22 -1450 replies
10/11mm/vmscan: Do not demote PG_dropbehind foliosmm/vmscan.c+1 -10 replies
11/11mm: Rename PG_dropbehind to PG_reclaimdrivers/gpu/drm/i915/gem/i915_gem_shmem.c include/linux/mm_inline.h include/linux/page-flags.h +9 more+43 -431 reply

Reviews trailers per patch

10 of 11 patches have a Reviewed-by or Acked-by.

PatchDavid HildenbrandYu ZhaoYosry AhmedNhat PhamAndi Shyti
1/11A-b
2/11A-b R-b
3/11A-b R-b
4/11A-b A-b A-b
5/11A-b
6/11A-b
7/11A-b
8/11A-b
9/11A-b
10/11
11/11A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v3 thread

Cover letter [PATCHv3 00/11] Get rid of PG_reclaim and rename PG_dropbehind

Use PG_dropbehind instead of PG_reclaim and remove PG_reclaim.

After removing PG_relcaim, PG_readahead is exclusive user of the page flag bit.

Once PG_reclaim is gone, we can rename PG_dropbehind to PG_reclaim.

v3:
- Condition folio_set_dropbehind() call in mapping_try_invalidate() on

    !unevictable and !mapped;

- Add Reviewed-by tag by Yu Zhao;

Kirill A. Shutemov (11):
mm/migrate: Transfer PG_dropbehind to the new folio drm/i915/gem: Convert __shmem_writeback() to folios drm/i915/gem: Use PG_dropbehind instead of PG_reclaim mm/zswap: Use PG_dropbehind instead of PG_reclaim mm/truncate: Use folio_set_dropbehind() instead of
deactivate_file_folio()
mm/vmscan: Use PG_dropbehind instead of PG_reclaim mm/vmscan: Use PG_dropbehind instead of PG_reclaim in
shrink_folio_list()
mm/mglru: Check PG_dropbehind instead of PG_reclaim in

    lru_gen_folio_seq()

mm: Remove PG_reclaim
mm/vmscan: Do not demote PG_dropbehind folios
mm: Rename PG_dropbehind to PG_reclaim

 drivers/gpu/drm/i915/gem/i915_gem_shmem.c |  18 ++-
 fs/fuse/dev.c                             |   2 +-
 fs/proc/page.c                            |   2 +-
 include/linux/mm_inline.h                 |  18 +--
 include/linux/page-flags.h                |  23 ++--
 include/linux/pagemap.h                   |   2 +-
 include/trace/events/mmflags.h            |   4 +-
 include/uapi/linux/kernel-page-flags.h    |   2 +-
 mm/filemap.c                              |  46 +++----
 mm/internal.h                             |   1 -
 mm/migrate.c                              |  14 +-
 mm/page-writeback.c                       |  16 +--
 mm/page_io.c                              |  15 +--
 mm/readahead.c                            |   4 +-
 mm/swap.c                                 | 153 +---------------------
 mm/truncate.c                             |   5 +-
 mm/vmscan.c                               |  28 +---
 mm/zswap.c                                |   2 +-
 tools/mm/page-types.c                     |   8 +-
 19 files changed, 68 insertions(+), 295 deletions(-)
Signature · 1 line
2.47.2