The patch titled Subject: mm-throttle-allocators-when-failing-reclaim-over-memoryhigh-fix-fix-fix-fix has been added to the -mm tree. Its filename is mm-throttle-allocators-when-failing-reclaim-over-memoryhigh-fix-fix-fix-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-throttle-allocators-when-failing-reclaim-over-memoryhigh-fix-fix-fix-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-throttle-allocators-when-failing-reclaim-over-memoryhigh-fix-fix-fix-fix.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Chris Down <chris@xxxxxxxxxxxxxx> Subject: mm-throttle-allocators-when-failing-reclaim-over-memoryhigh-fix-fix-fix-fix fix 64-bit divide even more Cc: Nathan Chancellor <natechancellor@xxxxxxxxx> Cc: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/mm/memcontrol.c~mm-throttle-allocators-when-failing-reclaim-over-memoryhigh-fix-fix-fix-fix +++ a/mm/memcontrol.c @@ -2433,8 +2433,8 @@ void mem_cgroup_handle_over_high(void) */ clamped_high = max(high, 1UL); - overage = (u64)(usage - high) << MEMCG_DELAY_PRECISION_SHIFT; - overage /= clamped_high; + overage = div_u64((u64)(usage - high) << MEMCG_DELAY_PRECISION_SHIFT, + clamped_high); penalty_jiffies = ((u64)overage * overage * HZ) >> (MEMCG_DELAY_PRECISION_SHIFT + MEMCG_DELAY_SCALING_SHIFT); _ Patches currently in -mm which might be from chris@xxxxxxxxxxxxxx are cgroup-kselftest-relax-fs_spec-checks.patch mm-throttle-allocators-when-failing-reclaim-over-memoryhigh.patch mm-throttle-allocators-when-failing-reclaim-over-memoryhigh-fix-fix-fix-fix.patch mm-proportional-memorylowmin-reclaim.patch mm-make-memoryemin-the-baseline-for-utilisation-determination.patch mm-make-memoryemin-the-baseline-for-utilisation-determination-fix.patch