The patch titled Subject: mm-mempolicy-introduce-mpol_weighted_interleave-for-weighted-interleaving-fix. has been added to the -mm mm-unstable branch. Its filename is mm-mempolicy-introduce-mpol_weighted_interleave-for-weighted-interleaving-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-mempolicy-introduce-mpol_weighted_interleave-for-weighted-interleaving-fix.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Gregory Price <gregory.price@xxxxxxxxxxxx> Subject: mm-mempolicy-introduce-mpol_weighted_interleave-for-weighted-interleaving-fix. Date: Wed, 31 Jan 2024 00:12:24 -0500 kill next_node in favor of operating directly on il_prev Link: https://lkml.kernel.org/r/ZbnWuB4dRCEFRz2m@xxxxxxxxxxxx Signed-off-by: Gregory Price <gregory.price@xxxxxxxxxxxx> Cc: Andi Kleen <ak@xxxxxxxxxxxxxxx> Cc: Dan Williams <dan.j.williams@xxxxxxxxx> Cc: Frank van der Linden <fvdl@xxxxxxxxxx> Cc: Hasan Al Maruf <Hasan.Maruf@xxxxxxx> Cc: Honggyu Kim <honggyu.kim@xxxxxx> Cc: Huang Ying <ying.huang@xxxxxxxxx> Cc: Hyeongtak Ji <hyeongtak.ji@xxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> Cc: Jonathan Corbet <corbet@xxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: Rakie Kim <rakie.kim@xxxxxx> Cc: Ravi Jonnalagadda <ravis.opensrc@xxxxxxxxxx> Cc: Srinivasulu Thanneeru <sthanneeru.opensrc@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mempolicy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/mm/mempolicy.c~mm-mempolicy-introduce-mpol_weighted_interleave-for-weighted-interleaving-fix +++ a/mm/mempolicy.c @@ -2378,7 +2378,7 @@ static unsigned long alloc_pages_bulk_ar unsigned int weight_total = 0; unsigned long rem_pages = nr_pages; nodemask_t nodes; - int nnodes, node, next_node; + int nnodes, node; int resume_node = MAX_NUMNODES - 1; u8 resume_weight = 0; int prev_node; @@ -2408,7 +2408,7 @@ static unsigned long alloc_pages_bulk_ar } else if (rem_pages == weight) { /* move to next node / weight */ me->il_prev = next_node_in(node, nodes); - me->il_weight = get_il_weight(next_node); + me->il_weight = get_il_weight(me->il_prev); return total_allocated; } /* Otherwise we adjust remaining pages, continue from there */ _ Patches currently in -mm which might be from gregory.price@xxxxxxxxxxxx are mm-mempolicy-introduce-mpol_weighted_interleave-for-weighted-interleaving-fix.patch