Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965632AbcJFJaN (ORCPT ); Thu, 6 Oct 2016 05:30:13 -0400 Received: from mout.web.de ([212.227.15.14]:60269 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965332AbcJFIrS (ORCPT ); Thu, 6 Oct 2016 04:47:18 -0400 Subject: MD-RAID: Fine-tuning for several function implementations References: <566ABCD9.1060404@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall To: linux-raid@vger.kernel.org, Christoph Hellwig , Guoqing Jiang , Jens Axboe , Mike Christie , Neil Brown , Shaohua Li , Tomasz Majchrzak From: SF Markus Elfring Message-ID: <786843ef-4b6f-eb04-7326-2f6f5b408826@users.sourceforge.net> Date: Thu, 6 Oct 2016 10:46:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <566ABCD9.1060404@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:lCAIvlRmkuYLhtdl/PHElVYcqzqig8p2HP/Y6Q4GGLKQU7c33Qp 7mZTDteef588oXoc4pRrIvqycNr9iur/IqrCNIyxtTIAsTjLAk6MaDRz6rqtDQKcC1apT1w YEz/xJ+IiSDi7YgJbujFH8k9p9OHo06Fxh6ZHs4yYuFMQ8eRulUiyxw0vOE3zGP7CD3Gysv GngmYHoWijFXLXEc08ktg== X-UI-Out-Filterresults: notjunk:1;V01:K0:XX3vqvGXw/Q=:JHEo11ElVCnIr0N4/Y3mYl ZCA5Bjr/xKn3m7IT16MCeCfAXnr4i/0zVIu7SG/zBUOCleDK9GIhGf5Yrev4/hH8qAoo1zYdh gdOOaulbL/2F/XYyfuaO9/9iY2ukIHKlCvLJThgtztwRdU4jQjFHTqHpqs4kNewo1MlWukg84 CyFfU2P7bOLfplQWLGMmX4nPRrXSjiA5ZireIw/sr2cF/tFyQLPwaNUCH8jJy2SOdyLUJ1txY FX4/Bblql+/nbIxLGqjdeFvSi+ECeAGZCm+fX7mL5ewqDGHO7/usbpNACs8Y2Bvii4Rabgqpt x3G9aYkezQOHnvSqYAeFxyiczYvOigITAx06tuF9+ukc3ylOS2bC3Csk98grAgh2WOKfLUL76 gzULhSqLDbgoMlKEu357SmmAtLceEKUIUGbnmcQBA1IN5Ebu2RMMN0tdtLF7ViAr8xeub7QCK rUWGFWziqhum83YQj2VSX7V9s6GhljRpw1CjCBcvxhfhkJNp5fnZwd7NELBTonHPeu/j8mig/ 8+Tv0fyc8LnlAxZ97zJmnEz6HkUVPhSuknb5U9Mza3e2msCZHFZJzMustTcFk78x4c3kw3f6u JZgRfALyd40rWhWm97yUVxRQbCZTw/IBQeMXqWFepxkhiHbXZcebpAjxQWfw3ew9kRwn8Xdeh l9vNlBVDK/sptsxKY303onxnwC52SJBdBJu/Y3/ayJ2M+TTJTt9JtGkU8kJgqpqtA4ctuodKn zgha8H9w4W+/EthdFFsf7KOP1ssjKqP7dOKmOivJOntp8Xyzc79/sl4HaNQhMc2/XUALVHxOR b5KZ4Jp Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3675 Lines: 70 From: Markus Elfring Date: Wed, 6 Oct 2016 10:10:01 +0200 Several update suggestions were taken into account from static source code analysis. Markus Elfring (54): raid0: Use kcalloc() in create_strip_zones() raid0: Less function calls in create_strip_zones() after error detection raid0: Move a variable assignment in create_strip_zones() raid0: Replace printk() calls by the usage of higher level interfaces raid0: Move another variable assignment in create_strip_zones() raid0: Delete four unwanted spaces behind function names raid0: Move two misplaced braces raid0: Delete an unnecessary return statement in raid0_status() raid0: Add some spaces for better code readability raid1: Use kcalloc() in alloc_behind_pages() raid1: Use kcalloc() in raid1_reshape() raid1: Use kcalloc() in setup_conf() raid1: Return directly after a failed kzalloc() in setup_conf() raid1: Move assignments for the variable "err" in setup_conf() raid1: Less function calls in setup_conf() after error detection raid1: Delete an error message for a failed memory allocation raid1: Move a brace for a designated initialiser raid1: Adjust 12 checks for null pointers raid1: Replace printk() calls by the usage of higher level interfaces raid1: Add some spaces for better code readability raid1: Delete three unwanted spaces behind asterisks raid1: Delete three unwanted spaces before increment operators raid1: Replace a seq_printf() call by seq_puts() in raid1_status() raid1: Improve another size determination in setup_conf() raid5: Use kcalloc() in three functions raid5: Improve another size determination in setup_conf() raid5: Return directly after a failed kzalloc() in setup_conf() raid5: Rename a jump label in setup_conf() raid5: Return directly after a failed kcalloc() in alloc_thread_groups() raid5: Delete two error messages for a failed memory allocation raid5: Adjust two function calls together with a variable assignment raid5: Move a brace for three designated initialisers raid5: Replace printk() calls by the usage of higher level interfaces raid5: Delete indentation for two jump labels raid5: Adjust 13 checks for null pointers raid5: Delete four unwanted spaces behind function names raid5: Replace a seq_printf() call by seq_puts() in raid5_status() raid5: Move four asterisks raid5: Add some spaces for better code readability raid10: Use kcalloc() in two functions raid10: Improve another size determination in setup_conf() raid10: Delete an error message for a failed memory allocation raid10: Return directly after detection of unsupported settings in setup_conf() raid10: Return directly after a failed kzalloc() in setup_conf() raid10: Move assignments for the variable "err" in setup_conf() raid10: Less function calls in setup_conf() after error detection raid10: Improve another size determination in raid10_start_reshape() raid10: Move a brace for a designated initialiser raid10: Replace printk() calls by the usage of higher level interfaces raid10: Delete indentation for one jump label raid10: Adjust 22 checks for null pointers raid10: Replace a seq_printf() call by seq_puts() in raid10_status() raid10: Delete two unwanted spaces behind asterisks raid10: Add some spaces for better code readability drivers/md/raid0.c | 170 ++++++++--------- drivers/md/raid1.c | 285 ++++++++++++++-------------- drivers/md/raid10.c | 366 ++++++++++++++++++------------------ drivers/md/raid5.c | 523 ++++++++++++++++++++++++---------------------------- 4 files changed, 649 insertions(+), 695 deletions(-) -- 2.10.1