[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOQ4uxjsuYy8BzgaHXaNa-S0+HZ_P-Fb1UEgOkbrdxQPz0Y6rQ@mail.gmail.com>
Date: Wed, 10 Jan 2024 15:19:07 +0200
From: Amir Goldstein <amir73il@...il.com>
To: Markus Elfring <Markus.Elfring@....de>
Cc: linux-unionfs@...r.kernel.org, kernel-janitors@...r.kernel.org,
Miklos Szeredi <miklos@...redi.hu>, cocci@...ia.fr, LKML <linux-kernel@...r.kernel.org>,
Christian Brauner <brauner@...nel.org>
Subject: Re: [0/4] overlayfs: Adjustments for ovl_fill_super()
On Wed, Jan 10, 2024 at 3:01 PM Markus Elfring <Markus.Elfring@....de> wrote:
>
> >> See also:
> >> https://lore.kernel.org/cocci/87b65f8e-abde-2aff-4da8-df6e0b464677@webde/
> >> https://sympa.inria.fr/sympa/arc/cocci/2023-03/msg00115.html
> >
> > I will queue cleanup patches 1-2,
>
> Thanks for this positive feedback.
Sorry, these patches do not apply to master branch and patch 1
is no longer correct in master branch and the new mount api changes.
>
>
> > but I do not like patches 3/4 and 4/4.
> > I do not think that they make the code better to read or maintain.
>
> I would appreciate if the details for such change reluctance can be clarified better.
patch 3:
I much rather a single error handling label that takes care of
all the cleanups - it is harder to make mistakes and jump to
the wrong label when adding new error conditions.
patch 4:
Overlayfs uses this coding style all over the place
err = -ENOMEM;
ofs->creator_cred = cred = prepare_creds();
if (!cred)
goto out_free_ofs;
I don't see the benefit in making err = -ENOMEM conditional.
I don't see the style after your patch as clearly better than before.
Thanks,
Amir.
Powered by blists - more mailing lists