Skip to content

mm: replace PF_KCOMPACTD/PF_KSWAPD with kthread_func()

Kefeng Wang linux-fsdevel linux-mm linux-xfs 1 version Applied

Status from this message: [merged mm-stable] mm-replace-pf_kcompactd-flag-with-kthread_func-check.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 16 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4xfs: remove dead kswapd flag inheritance from btree split workerfs/xfs/libxfs/xfs_btree.c fs/xfs/xfs_platform.h+1 -212 repliesApplied
2/4iomap: simplify writepages reclaim guardfs/iomap/buffered-io.c+1 -23 repliesApplied
3/4mm: replace PF_KSWAPD flag with kthread_func() checkinclude/linux/sched.h include/linux/swap.h mm/vmscan.c +1 more+10 -104 repliesApplied
4/4mm: replace PF_KCOMPACTD flag with kthread_func() checkinclude/linux/compaction.h include/linux/sched.h mm/compaction.c +1 more+13 -104 repliesApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChristoph HellwigShakeel ButtVlastimil Babka (SUSE)Zi YanBrian FosterDavid Hildenbrand (Arm)
SeriesR-b R-b
1/4R-b R-b
2/4R-b
3/4A-b A-b A-b
4/4A-b A-b A-b R-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 6 reviewers.

Read the v1 thread

Cover letter [PATCH 0/4] mm: replace PF_KCOMPACTD/PF_KSWAPD with kthread_func()

The task_struct->flags field is a limited 32-bit resource. Two flag bits, PF_KCOMPACTD and PF_KSWAPD, are used to identify whether a kernel thread is kcompactd or kswapd. Converting these to use kthread_func() frees up two valuable flag bits for future use.

Kefeng Wang (4):
xfs: remove dead kswapd flag inheritance from btree split worker
iomap: simplify writepages reclaim guard
mm: replace PF_KSWAPD flag with kthread_func() check
mm: replace PF_KCOMPACTD flag with kthread_func() check

 fs/iomap/buffered-io.c                   |  3 +--
 fs/xfs/libxfs/xfs_btree.c                | 18 +-----------------
 fs/xfs/xfs_platform.h                    |  4 ----
 include/linux/compaction.h               | 11 ++++++-----
 include/linux/sched.h                    |  4 ++--
 include/linux/swap.h                     |  7 +------
 mm/compaction.c                          |  9 ++++++---
 mm/vmscan.c                              | 10 ++++++++--
 tools/sched_ext/include/scx/common.bpf.h |  2 --
 9 files changed, 25 insertions(+), 43 deletions(-)
Signature · 1 line
2.55.0