Skip to content
Commit 1d401650 authored by Guoqing Cai's avatar Guoqing Cai Committed by Theodore Ts'o
Browse files

fs: jbd2: fix an incorrect warn log



In jbd2_journal_load(), when journal_reset fails, it prints an incorrect
warn log.

Fix this by changing the goto statement to return statement.

Also, return actual error code from jbd2_journal_recover() and journal_reset().

Signed-off-by: default avatarGuoqing Cai <u202112087@hust.edu.cn>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230413095740.2222066-1-u202112087@hust.edu.cn


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent bedc5d34
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment