linux/fs/jbd2
Jan Kara c88f7328bb jbd2: remove wrong sb->s_sequence check
commit e6eff39dd0 upstream.

Journal emptiness is not determined by sb->s_sequence == 0 but rather by
sb->s_start == 0 (which is set a few lines above). Furthermore 0 is a
valid transaction ID so the check can spuriously trigger. Remove the
invalid WARN_ON.

CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20250206094657.20865-3-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-04-25 10:45:28 +02:00
..
checkpoint.c jbd2: stop waiting for space when jbd2_cleanup_journal_tail() returns error 2024-10-10 11:57:50 +02:00
commit.c jbd2: flush filesystem device before updating tail sequence 2025-01-17 13:36:09 +01:00
journal.c jbd2: remove wrong sb->s_sequence check 2025-04-25 10:45:28 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
recovery.c jbd2: avoid mount failed when commit block is partial submitted 2024-09-12 11:11:37 +02:00
revoke.c jbd2: increase IO priority for writing revoke records 2025-01-17 13:36:09 +01:00
transaction.c jbd2: avoid infinite transaction commit loop 2024-08-03 08:54:19 +02:00