[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b71c4088-4d8b-4613-8af5-e81f32abecf9@stanley.mountain>
Date: Tue, 4 Mar 2025 09:38:33 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Naohiro Aota <Naohiro.Aota@....com>
Cc: Markus Elfring <Markus.Elfring@....de>,
"kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>,
"linux-btrfs@...r.kernel.org" <linux-btrfs@...r.kernel.org>,
Chris Mason <clm@...com>, David Sterba <dsterba@...e.com>,
Josef Bacik <josef@...icpanda.com>,
"cocci@...ia.fr" <cocci@...ia.fr>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH RESEND] btrfs: Fix exception handling in
relocating_repair_kthread()
On Tue, Mar 04, 2025 at 01:34:00AM +0000, Naohiro Aota wrote:
> On Tue Mar 4, 2025 at 5:31 AM JST, Markus Elfring wrote:
> > From: Markus Elfring <elfring@...rs.sourceforge.net>
> > Date: Wed, 22 Mar 2023 20:10:09 +0100
> >
> > The label “out” was used to jump to another pointer check despite of
> > the detail in the implementation of the function
> > “relocating_repair_kthread” that it was determined already that
> > a corresponding variable contained a null pointer because of
> > a failed call of the function “btrfs_lookup_block_group”.
> >
> > * Thus use more appropriate labels instead.
> >
> > * Delete a redundant check.
> >
> >
> > This issue was detected by using the Coccinelle software.
>
> Since this function is local to the zoned feature, could I have "zoned: "
> added to the subject line?
>
> Other than that, it looks reasonable to me.
>
> Reviewed-by: Naohiro Aota <naohiro.aota@....com>
>
> >
> > Fixes: f7ef5287a63d ("btrfs: zoned: relocate block group to repair IO failure in zoned filesystems")
> > Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
Don't use Fixes tags, if it's not a bug fix.
regards,
dan carpenter
Powered by blists - more mailing lists