The patch titled Subject: ocfs2-without-quota-support-try-to-avoid-calling-quota-recovery-checkpatch-fixes has been added to the -mm tree. Its filename is ocfs2-without-quota-support-try-to-avoid-calling-quota-recovery-checkpatch-fixes.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/ocfs2-without-quota-support-try-to-avoid-calling-quota-recovery-checkpatch-fixes.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-without-quota-support-try-to-avoid-calling-quota-recovery-checkpatch-fixes.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: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: ocfs2-without-quota-support-try-to-avoid-calling-quota-recovery-checkpatch-fixes WARNING: Prefer kcalloc over kzalloc with multiply #45: FILE: fs/ocfs2/journal.c:1393: + rm_quota = kzalloc(osb->max_slots * sizeof(int), GFP_NOFS); total: 0 errors, 1 warnings, 81 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/ocfs2-without-quota-support-try-to-avoid-calling-quota-recovery.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Changwei Ge <ge.changwei@xxxxxxx> Cc: Jan Kara <jack@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/ocfs2/journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/ocfs2/journal.c~ocfs2-without-quota-support-try-to-avoid-calling-quota-recovery-checkpatch-fixes fs/ocfs2/journal.c --- a/fs/ocfs2/journal.c~ocfs2-without-quota-support-try-to-avoid-calling-quota-recovery-checkpatch-fixes +++ a/fs/ocfs2/journal.c @@ -1390,7 +1390,7 @@ static int __ocfs2_recovery_thread(void } if (quota_enabled) { - rm_quota = kzalloc(osb->max_slots * sizeof(int), GFP_NOFS); + rm_quota = kcalloc(osb->max_slots, sizeof(int), GFP_NOFS); if (!rm_quota) { status = -ENOMEM; goto bail; _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are i-need-old-gcc.patch mm-memblock-hardcode-the-end_pfn-being-1-fix.patch mm-memblock-hardcode-the-end_pfn-being-1-fix-fix.patch arm-arch-arm-include-asm-pageh-needs-personalityh.patch ocfs2-without-quota-support-try-to-avoid-calling-quota-recovery-checkpatch-fixes.patch mm.patch mm-page_alloc-skip-over-regions-of-invalid-pfns-on-uma-fix.patch direct-io-minor-cleanups-in-do_blockdev_direct_io-fix.patch mm-fix-races-between-swapoff-and-flush-dcache-fix.patch list_lru-prefetch-neighboring-list-entries-before-acquiring-lock-fix.patch mm-oom-cgroup-aware-oom-killer-fix.patch mm-oom-docs-describe-the-cgroup-aware-oom-killer-fix-2-fix.patch proc-add-seq_put_decimal_ull_width-to-speed-up-proc-pid-smaps-fix.patch sysctl-add-flags-to-support-min-max-range-clamping-fix.patch linux-next-rejects.patch kernel-forkc-export-kernel_thread-to-modules.patch slab-leaks3-default-y.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