[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <004901d5a0e0$f7bf1030$e73d3090$@samsung.com>
Date: Fri, 22 Nov 2019 12:00:16 +0900
From: "Namjae Jeon" <namjae.jeon@...sung.com>
To: "'Markus Elfring'" <Markus.Elfring@....de>
Cc: <linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>,
"'Christoph Hellwig'" <hch@....de>,
"'Daniel Wagner'" <dwagner@...e.de>,
"'Greg Kroah-Hartman'" <gregkh@...uxfoundation.org>,
"'Nikolay Borisov'" <nborisov@...e.com>,
"'Sungjong Seo'" <sj1557.seo@...sung.com>,
'Valdis Klētnieks' <valdis.kletnieks@...edu>,
<linkinjeon@...il.com>, <linux-fsdevel@...r.kernel.org>
Subject: RE: [PATCH v4 04/13] exfat: add directory operations
>
> …
> > +++ b/fs/exfat/dir.c
> …
> > +static int exfat_readdir(struct inode *inode, struct exfat_dir_entry
> *dir_entry)
> > +{
> …
> > + if (!ep) {
> > + ret = -EIO;
> > + goto free_clu;
> > + }
>
> How do you think about to move a bit of common exception handling code
> (at similar places)?
Not sure it is good. Other review comments are okay. Will fix them on v5.
>
> + if (!ep)
> + goto e_io;
>
>
> …
> > +free_clu:
> > + kfree(clu);
> > + return ret;
>
> +
> +e_io:
> + ret = -EIO;
> + goto free_clu;
>
> > +}
Powered by blists - more mailing lists