linux/fs/jbd2
Jan Kara a662f3c03b jbd2: do not try to recover wiped journal
If a journal is wiped, we will set journal->j_tail to 0. However if
'write' argument is not set (as it happens for read-only device or for
ocfs2), the on-disk superblock is not updated accordingly and thus
jbd2_journal_recover() cat try to recover the wiped journal. Fix the
check in jbd2_journal_recover() to use journal->j_tail for checking
empty journal instead.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20250206094657.20865-4-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2025-03-17 11:19:41 -04:00
..
checkpoint.c ext4: fix incorrect tid assumption in jbd2_journal_shrink_checkpoint_list() 2024-08-26 23:39:48 -04:00
commit.c jbd2: Correct stale comment of release_buffer_page 2025-03-13 10:41:21 -04:00
journal.c jbd2: remove wrong sb->s_sequence check 2025-03-17 11:19:41 -04:00
Kconfig jbd2: switch to using the crc32c library 2024-12-01 17:23:02 -08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
recovery.c jbd2: do not try to recover wiped journal 2025-03-17 11:19:41 -04:00
revoke.c jbd2: correct stale function name in comment 2025-03-13 10:41:21 -04:00
transaction.c jbd2: correct stale function name in comment 2025-03-13 10:41:21 -04:00