Implementation of weight-based L/R memory interleaving allocation v2: - add Signed-off-by for patch one. 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 Honggyu Kim (1): mm/mempolicy: count MPOL_WEIGHTED_INTERLEAVE to "interleave_hit" 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 Lukas Bulwahn (1): mempolicy: clean up minor dead code in queue_pages_test_walk() Rakie Kim (2): mm/mempolicy: implement the sysfs-based weighted_interleave interface mm/mempolicy: fix memory leaks in weighted interleave sysfs Ze Zuo (1): Revert "mm/mempolicy.c: fix the out-of-bounds access issue in mpol_parse_str" .../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/uapi/linux/mempolicy.h | 2 +- ipc/shm.c | 19 +- mm/hugetlb.c | 38 +- mm/mempolicy.c | 1505 ++++++++++------- mm/shmem.c | 77 +- mm/swap.h | 7 +- mm/swap_state.c | 81 +- mm/zswap.c | 7 +- 16 files changed, 1143 insertions(+), 755 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-kernel-mm-mempolicy create mode 100644 Documentation/ABI/testing/sysfs-kernel-mm-mempolicy-weighted-interleave -- 2.25.1