Backport feature(mm/mempolicy: weighted interleave mempolicy and sysfs extension)
and some mempolicy bugfix and cleanup.
v1 -> v2
- fix conlict in patch [1].
Gregory Price (3):
mm/mempolicy: refactor a read-once mechanism into a function for
re-use
mm/mempolicy: introduce MPOL_WEIGHTED_INTERLEAVE for weighted
interleaving
mm/mempolicy: protect task interleave functions with
tsk->mems_allowed_seq
Hugh Dickins (10):
mempolicy: fix migrate_pages(2) syscall return nr_failed
mempolicy trivia: delete those ancient pr_debug()s
mempolicy trivia: slightly more consistent naming
mempolicy trivia: use pgoff_t in shared mempolicy tree
mempolicy: mpol_shared_policy_init() without pseudo-vma
mempolicy: remove confusing MPOL_MF_LAZY dead code
kernfs: drop shared NUMA mempolicy hooks
mempolicy: alloc_pages_mpol() for NUMA policy without vma
mempolicy: mmap_lock is not needed while migrating folios
mempolicy: migration attempt to match interleave nodes
Rakie Kim (1):
mm/mempolicy: implement the sysfs-based weighted_interleave interface
.../ABI/testing/sysfs-kernel-mm-mempolicy | 4 +
...fs-kernel-mm-mempolicy-weighted-interleave | 25 +
.../admin-guide/mm/numa_memory_policy.rst | 9 +
fs/kernfs/file.c | 49 -
fs/proc/task_mmu.c | 5 +-
include/linux/gfp.h | 10 +-
include/linux/hugetlb.h | 9 -
include/linux/mempolicy.h | 51 +-
include/linux/mm.h | 2 +-
include/linux/sched.h | 1 +
include/uapi/linux/mempolicy.h | 3 +-
ipc/shm.c | 21 +-
mm/hugetlb.c | 38 +-
mm/mempolicy.c | 1450 +++++++++++------
mm/shmem.c | 95 +-
mm/swap.h | 9 +-
mm/swap_state.c | 86 +-
mm/zswap.c | 7 +-
18 files changed, 1138 insertions(+), 736 deletions(-)
create mode 100644 Documentation/ABI/testing/sysfs-kernel-mm-mempolicy
create mode 100644 Documentation/ABI/testing/sysfs-kernel-mm-mempolicy-weighted-interleave
--
2.33.0