From: Jan Kara <jack@suse.cz>
To: Jason Yan <yanaijie@huawei.com>
Cc: Jan Kara <jack@suse.cz>,
tytso@mit.edu, adilger.kernel@dilger.ca, ritesh.list@gmail.com,
lczerner@redhat.com, linux-ext4@vger.kernel.org
Subject: Re: [PATCH] ext4: fix wrong return err in ext4_load_and_init_journal()
Date: Tue, 25 Oct 2022 10:56:01 +0200 [thread overview]
Message-ID: <20221025085601.gpxh5stotqx7to54@quack3> (raw)
In-Reply-To: <8b2e325c-057b-3287-c38e-0ca5b936d4db@huawei.com>
On Tue 25-10-22 11:27:01, Jason Yan wrote:
>
> On 2022/10/24 23:29, Jan Kara wrote:
> > On Sat 22-10-22 21:07:39, Jason Yan wrote:
> > > The return value is wrong in ext4_load_and_init_journal(). The local
> > > variable 'err' need to be initialized before goto out. The original code
> > > in __ext4_fill_super() is fine because it has two return values 'ret'
> > > and 'err' and 'ret' is initialized as -EINVAL. After we factor out
> > > ext4_load_and_init_journal(), this code is broken. So fix it by directly
> > > returning -EINVAL in the error handler path.
> > >
> > > Fixes: 9c1dd22d7422 (ext4: factor out ext4_load_and_init_journal())
> >
> > We format the tag usually as:
> >
> > Fixes: 9c1dd22d7422 ("ext4: factor out ext4_load_and_init_journal()")
> >
>
> Oh, sorry I didn't notice it. Thank you so much.
>
> I generate this tag by the following script:
>
> #cat .gitconfig
> [alias]
> fixes = log --abbrev=12 -1 --format='Fixes: %h ("%s")'
>
>
> #git fixes 9c1dd22d742249cfae7bbf3680a7c188d194d3ce
> Fixes: 9c1dd22d7422 (ext4: factor out ext4_load_and_init_journal())
>
> This works fine before but it fails recently. I don't know what makes the
> behavior changed.
I guess something does one more round of expansion on the string. I guess
you could trace it with strace and see where the quotes get lost...
Honza
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
prev parent reply other threads:[~2022-10-25 8:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-22 13:07 [PATCH] ext4: fix wrong return err in ext4_load_and_init_journal() Jason Yan
2022-10-24 15:29 ` Jan Kara
2022-10-25 3:27 ` Jason Yan
2022-10-25 8:56 ` Jan Kara [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221025085601.gpxh5stotqx7to54@quack3 \
--to=jack@suse.cz \
--cc=adilger.kernel@dilger.ca \
--cc=lczerner@redhat.com \
--cc=linux-ext4@vger.kernel.org \
--cc=ritesh.list@gmail.com \
--cc=tytso@mit.edu \
--cc=yanaijie@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox