From: Markus Elfring <Markus.Elfring@web.de>
To: Karl Mehltretter <kmehltretter@gmail.com>,
linux-ext4@vger.kernel.org, Theodore Ts'o <tytso@mit.edu>
Cc: LKML <linux-kernel@vger.kernel.org>,
Andreas Dilger <adilger.kernel@dilger.ca>,
Baokun Li <libaokun@linux.alibaba.com>, Jan Kara <jack@suse.cz>,
Ojaswin Mujoo <ojaswin@linux.ibm.com>,
Ritesh Harjani <ritesh.list@gmail.com>,
Zhang Yi <yi.zhang@huawei.com>
Subject: Re: [PATCH] ext4: return an error when a journal block is not mapped
Date: Thu, 8 Oct 2026 10:32:06 +0200 [thread overview]
Message-ID: <23514bc7-e2b1-4796-a107-a5674dede5b0@web.de> (raw)
In-Reply-To: <20261004180629.27213-1-kmehltretter@gmail.com>
…
> +++ b/fs/ext4/super.c
> @@ -5967,7 +5967,7 @@ static int ext4_journal_bmap(journal_t *journal, sector_t *block)
> "journal bmap failed: block %llu ret %d\n",
> *block, ret);
> jbd2_journal_abort(journal, ret ? ret : -EFSCORRUPTED);
> - return ret;
> + return ret ? ret : -EFSCORRUPTED;
> }
> *block = map.m_pblk;
> return 0;
Would you expect that an optimiser will avoid a duplicate expression here?
How do you think about to adjust this implementation detail another bit?
Regards,
Markus
next prev parent reply other threads:[~2026-10-08 8:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-04 18:06 Karl Mehltretter
2026-10-05 11:18 ` Jan Kara
2026-10-08 7:25 ` Zhang Yi
2026-10-08 8:32 ` Markus Elfring [this message]
2026-10-08 10:08 ` Jan Kara
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=23514bc7-e2b1-4796-a107-a5674dede5b0@web.de \
--to=markus.elfring@web.de \
--cc=adilger.kernel@dilger.ca \
--cc=jack@suse.cz \
--cc=kmehltretter@gmail.com \
--cc=libaokun@linux.alibaba.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ojaswin@linux.ibm.com \
--cc=ritesh.list@gmail.com \
--cc=tytso@mit.edu \
--cc=yi.zhang@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
all inboxes | Powered by JetHome®