The patch titled memcg: remove pointless next_mz nullification in mem_cgroup_soft_limit_reclaim() has been added to the -mm tree. Its filename is memcg-remove-pointless-next_mz-nullification-in-mem_cgroup_soft_limit_reclaim.patch 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/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: memcg: remove pointless next_mz nullification in mem_cgroup_soft_limit_reclaim() From: Michal Hocko <mhocko@xxxxxxx> next_mz is assigned to NULL if __mem_cgroup_largest_soft_limit_node selects the same mz. This doesn't make much sense as we assign to the variable right in the next loop. Compiler will probably optimize this out but it is little bit confusing for the code reading. Signed-off-by: Michal Hocko <mhocko@xxxxxxx> Acked-by: Daisuke Nishimura <nishimura@xxxxxxxxxxxxxxxxx> Cc: Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff -puN mm/memcontrol.c~memcg-remove-pointless-next_mz-nullification-in-mem_cgroup_soft_limit_reclaim mm/memcontrol.c --- a/mm/memcontrol.c~memcg-remove-pointless-next_mz-nullification-in-mem_cgroup_soft_limit_reclaim +++ a/mm/memcontrol.c @@ -3404,10 +3404,9 @@ unsigned long mem_cgroup_soft_limit_recl */ next_mz = __mem_cgroup_largest_soft_limit_node(mctz); - if (next_mz == mz) { + if (next_mz == mz) css_put(&next_mz->mem->css); - next_mz = NULL; - } else /* next_mz == NULL or other memcg */ + else /* next_mz == NULL or other memcg */ break; } while (1); } _ Patches currently in -mm which might be from mhocko@xxxxxxx are memsw-remove-noswapaccount-kernel-parameter.patch memcg-remove-pointless-next_mz-nullification-in-mem_cgroup_soft_limit_reclaim.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html