Commit 1872549
ext4: correct inconsistent error msg in nojournal mode
[ Upstream commit 89481b5 ]
When we used the journal_async_commit mounting option in nojournal mode,
the kernel told me that "can't mount with journal_checksum", was very
confusing. I find that when we mount with journal_async_commit, both the
JOURNAL_ASYNC_COMMIT and EXPLICIT_JOURNAL_CHECKSUM flags are set. However,
in the error branch, CHECKSUM is checked before ASYNC_COMMIT. As a result,
the above inconsistency occurs, and the ASYNC_COMMIT branch becomes dead
code that cannot be executed. Therefore, we exchange the positions of the
two judgments to make the error msg more accurate.
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20221109074343.4184862-1-libaokun1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 761f88f commit 1872549
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4667 | 4667 | | |
4668 | 4668 | | |
4669 | 4669 | | |
4670 | | - | |
| 4670 | + | |
4671 | 4671 | | |
4672 | | - | |
| 4672 | + | |
4673 | 4673 | | |
4674 | 4674 | | |
4675 | | - | |
| 4675 | + | |
| 4676 | + | |
4676 | 4677 | | |
4677 | | - | |
| 4678 | + | |
4678 | 4679 | | |
4679 | 4680 | | |
4680 | 4681 | | |
| |||
0 commit comments