The patch titled mm-compaction-prevent-division-by-zero-during-user-requested-compaction-fix-fix has been added to the -mm tree. Its filename is mm-compaction-prevent-division-by-zero-during-user-requested-compaction-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/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: mm-compaction-prevent-division-by-zero-during-user-requested-compaction-fix-fix From: Johannes Weiner <hannes@xxxxxxxxxxx> There is also the one in compact_finished(), here is an update: Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Mel Gorman <mel@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/compaction.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN mm/compaction.c~mm-compaction-prevent-division-by-zero-during-user-requested-compaction-fix-fix mm/compaction.c --- a/mm/compaction.c~mm-compaction-prevent-division-by-zero-during-user-requested-compaction-fix-fix +++ a/mm/compaction.c @@ -406,6 +406,10 @@ static int compact_finished(struct zone if (!zone_watermark_ok(zone, cc->order, watermark, 0, 0)) return COMPACT_CONTINUE; + /* + * order == -1 is expected when compacting via + * /proc/sys/vm/compact_memory + */ if (cc->order == -1) return COMPACT_CONTINUE; _ Patches currently in -mm which might be from hannes@xxxxxxxxxxx are mm-compaction-prevent-division-by-zero-during-user-requested-compaction.patch mm-compaction-prevent-division-by-zero-during-user-requested-compaction-fix.patch mm-compaction-prevent-division-by-zero-during-user-requested-compaction-fix-fix.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