From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Antonov Subject: Re: [patch] hfsplus: add missing curly braces in hfsplus_delete_cat() Date: Wed, 25 Feb 2015 19:20:49 +0100 Message-ID: References: <20150225133644.GW19745@mwanda> <20150225171303.GF5116@mwanda> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Andrew Morton , Vyacheslav Dubeyko , Sougata Santra , Christoph Hellwig , "linux-fsdevel@vger.kernel.org" , kernel-janitors@vger.kernel.org To: Dan Carpenter Return-path: Received: from mail-oi0-f48.google.com ([209.85.218.48]:45825 "EHLO mail-oi0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752634AbbBYSUu (ORCPT ); Wed, 25 Feb 2015 13:20:50 -0500 In-Reply-To: <20150225171303.GF5116@mwanda> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 25 February 2015 at 18:13, Dan Carpenter wrote: > On Wed, Feb 25, 2015 at 03:50:19PM +0100, Sergei Antonov wrote: >> Right you are. >> I would also add 2 things: >> 1. CC the author of the last patch (the one which introduced it). > > Huh? Sougata is CC'd. I didn't add a fixes: tag because this is just a > cleanup and has no effect on runtime. > >> 2. Unify the way the return code from hfsplus_cat_build_key() is >> checked. Now it has two flavours: "if (unlikely(err < 0))" and "if >> (unlikely(err))". The latter is better. > > I'm a bit confused. > 1) This function uses "if (unlikely(err)) " consistently. The last patch https://github.com/torvalds/linux/commit/89ac9b4d3d1a049ae1054f99b1aed81092cd0a82#diff-37a74f715b10ff2d442d82812c89e874 intruduced "if (unlikely(err < 0))" in fs/hfsplus/dir.c for example, but "if (unlikely(err))" in fs/hfsplus/catalog.c > 2) I don't see how any of that relates to this patch?? This patch is not bad. But I'd rather see a bigger "Fix the last commit" patch rather than "Add missing braces".