[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170821134215.4wpttdh5siuax5b3@mwanda>
Date: Mon, 21 Aug 2017 16:42:16 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Jeff Mahoney <jeffm@...e.com>
Cc: SF Markus Elfring <elfring@...rs.sourceforge.net>,
linux-btrfs@...r.kernel.org, Chris Mason <clm@...com>,
David Sterba <dsterba@...e.com>, Josef Bacik <jbacik@...com>,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH 4/5] btrfs: Use common error handling code in
update_ref_path()
On Mon, Aug 21, 2017 at 09:08:04AM -0400, Jeff Mahoney wrote:
> On 8/21/17 8:41 AM, SF Markus Elfring wrote:
> > From: Markus Elfring <elfring@...rs.sourceforge.net>
> > Date: Mon, 21 Aug 2017 13:34:29 +0200
> >
> > Add a jump target so that a bit of exception handling can be better reused
> > in this function.
> >
> > This issue was detected by using the Coccinelle software.
>
> Adding a jump label in the middle of a conditional for "common" error
> handling makes the code more difficult to understand.
>
I have said that a bunch of times. It's like bashing my face into the
keyboard for all the good it does. On the other hand, some people
accept these oddly placed labels... No one else writes code like this
so far as I know.
regards,
dan carpenter
Powered by blists - more mailing lists