From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751935AbbGENPv (ORCPT ); Sun, 5 Jul 2015 09:15:51 -0400 Received: from mout.web.de ([212.227.17.12]:55844 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750887AbbGENPn (ORCPT ); Sun, 5 Jul 2015 09:15:43 -0400 Message-ID: <55992DF0.5030205@users.sourceforge.net> Date: Sun, 05 Jul 2015 15:15:28 +0200 From: SF Markus Elfring User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Joel Becker , Mark Fasheh , ocfs2-devel@oss.oracle.com CC: LKML , kernel-janitors@vger.kernel.org, Julia Lawall Subject: [PATCH 00/11] ocfs2: Deletion of some unnecessary checks References: <5307CAA2.8060406@users.sourceforge.net> <530A086E.8010901@users.sourceforge.net> <530A72AA.3000601@users.sourceforge.net> <530B5FB6.6010207@users.sourceforge.net> <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <5455FC05.4010606@users.sourceforge.net> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:nU1EErEyfMktewYBGRSzro4dFR8bRqCjAMbKyQzj/WkLUfBYy8P ydL3+iVorExVRIRbIAwkYwsc6TmRe3CyKMerOMcgdKF4JQy0q7QQqqSdFfuyo/cwavS/XAd 3d1r3n+vQGvPw/IN2qFh9mr5xFm7N4jnoPcBHENKeaKdtDcUsvC50egD6EQCknrbQE7ybq2 vGVZjGli5jxmXCSNQm9uQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:v8I2IcQsvW8=:1+3370HxGwu0iQryyniKt/ 3R9dYy4HbrStHVKBdTfxZQ/zLgz88qms7xB4nKLzpYMwy8U/7kyO/yKhLNIjj2RdIzY3jdApJ yaBBAZQiMF9x8LSgOb9vadojX3R26HD/MdGSorkh44Fj5mfMrgPf8Ln8skhMhF3uxfdaTqTQw 8+69M30hqLs59VjkoCWf6CMOPSDc3a4oBTPEcUCH1RP6WID3MdSritbGleex8yh5e0mWxGv2D mxAoIvM88ZRp6rQ7WANj/l9iFh6KmxbDxrtD9riDI3kGmahann0WaXTe6lLlujjPNnjj6kIhM RBBvCV04LgeTx5uiyGXfMRJAvt1yQrdZZTZOziFAvJh91Touo5twOexf8j6IKIXe/AQsPoYTK sq69/JdIsqWamm/cJ+XywS9AsyYu0BQOHaj/zDPocBuRr517T08/PJBMou6H0OBGxYtI/2Oe3 eGrBCIpFRgcPq730IT735DaV+EJD01iFriDK4YlmyPRTc/fSyNzMfyxTAhUf/0RhmrNzpaaEc W8fxbid9a4wlgs0XLE3l7Zu7CquZ8BXZystGK3W+Jn4xjyLZONpJTuK4hVPPPK66N0Mw7QaMF +oZDVaiBUjBslIIRh0t8SOcYCMIc+Ya0IDa0NRvN63mlJTCT/ZRIONWbavgdiY04LDMD/OLS9 LalqqEK3GpDTzZ1FyKdaLAcPuomPJG1Y9Tw1pz7j6PJsnKPTIQj53R/CiPQ49RrTEIbc= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Further update suggestions were taken into account after two patches were applied from static source code analysis. Markus Elfring (11): Delete an unnecessary check before unregister_sysctl_table() Delete unnecessary checks before the function call "iput" Less checks in ocfs2_rename() after error detection One check less in ocfs2_statfs() Less error log repetition in ocfs2_begin_truncate_log_recovery() Two checks less in ocfs2_local_alloc_slide_window() Less function calls in ocfs2_shutdown_local_alloc() after error detection Less checks in ocfs2_load_local_alloc() One function call less in ocfs2_trylock_journal() after error detection Less function calls in ocfs2_replay_journal() after error detection One function call less in ocfs2_journal_shutdown() from input checks fs/ocfs2/alloc.c | 24 +++++++-------- fs/ocfs2/ioctl.c | 4 +-- fs/ocfs2/journal.c | 62 +++++++++++++++---------------------- fs/ocfs2/localalloc.c | 84 +++++++++++++++++++++------------------------------ fs/ocfs2/namei.c | 17 +++++------ fs/ocfs2/slot_map.c | 3 +- fs/ocfs2/stackglue.c | 3 +- fs/ocfs2/super.c | 22 ++++++-------- 8 files changed, 90 insertions(+), 129 deletions(-) -- 2.4.5