The patch titled memcg-add-dirty-limits-to-mem_cgroup-div-fix has been removed from the -mm tree. Its filename was memcg-add-dirty-limits-to-mem_cgroup-div-fix.patch This patch was dropped because it is obsolete The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: memcg-add-dirty-limits-to-mem_cgroup-div-fix From: Minchan Kim <minchan.kim@xxxxxxxxx> mm/built-in.o: In function `mem_cgroup_dirty_info': mm/memcontrol.c:1251: undefined reference to `__divdi3' mm/memcontrol.c:1259: undefined reference to `__divdi3' We should have used do_div. Below patch solve the problem? Reported-by: Dave Young <hidave.darkstar@xxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Greg Thelen <gthelen@xxxxxxxxxx> Cc: Andrea Righi <arighi@xxxxxxxxxxx> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Cc: Daisuke Nishimura <nishimura@xxxxxxxxxxxxxxxxx> Cc: Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> Cc: Wu Fengguang <fengguang.wu@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff -puN mm/memcontrol.c~memcg-add-dirty-limits-to-mem_cgroup-div-fix mm/memcontrol.c --- a/mm/memcontrol.c~memcg-add-dirty-limits-to-mem_cgroup-div-fix +++ a/mm/memcontrol.c @@ -1243,18 +1243,20 @@ bool mem_cgroup_dirty_info(unsigned long if (dirty_param.dirty_bytes) info->dirty_thresh = DIV_ROUND_UP(dirty_param.dirty_bytes, PAGE_SIZE); - else - info->dirty_thresh = - (dirty_param.dirty_ratio * available_mem) / 100; + else { + info->dirty_thresh = dirty_param.dirty_ratio * available_mem; + do_div(info->dirty_thresh, 100); + } if (dirty_param.dirty_background_bytes) info->background_thresh = DIV_ROUND_UP(dirty_param.dirty_background_bytes, PAGE_SIZE); - else - info->background_thresh = - (dirty_param.dirty_background_ratio * - available_mem) / 100; + else { + info->background_thresh = dirty_param.dirty_background_ratio * + available_mem; + do_div(info->background_thresh, 100); + } value = mem_cgroup_page_stat(MEMCG_NR_RECLAIM_PAGES); if (value < 0) _ Patches currently in -mm which might be from minchan.kim@xxxxxxxxx are linux-next.patch mm-vfs-revalidate-page-mapping-in-do_generic_file_read.patch mm-vmap-area-cache.patch memcg-add-page_cgroup-flags-for-dirty-page-tracking.patch memcg-document-cgroup-dirty-memory-interfaces.patch memcg-document-cgroup-dirty-memory-interfaces-fix.patch memcg-create-extensible-page-stat-update-routines.patch memcg-add-lock-to-synchronize-page-accounting-and-migration.patch writeback-create-dirty_info-structure.patch memcg-add-dirty-page-accounting-infrastructure.patch memcg-add-kernel-calls-for-memcg-dirty-page-stats.patch memcg-add-dirty-limits-to-mem_cgroup.patch memcg-add-dirty-limits-to-mem_cgroup-use-native-word-to-represent-dirtyable-pages.patch memcg-add-dirty-limits-to-mem_cgroup-catch-negative-per-cpu-sums-in-dirty-info.patch memcg-cpu-hotplug-lockdep-warning-fix.patch memcg-add-cgroupfs-interface-to-memcg-dirty-limits.patch memcg-break-out-event-counters-from-other-stats.patch memcg-check-memcg-dirty-limits-in-page-writeback.patch memcg-use-native-word-page-statistics-counters.patch memcg-use-native-word-page-statistics-counters-fix.patch memcg-use-zalloc-rather-than-mallocmemset.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