]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
jbd2: remove wrong sb->s_sequence check
authorJan Kara <jack@suse.cz>
Thu, 6 Feb 2025 09:46:58 +0000 (10:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:45:28 +0000 (10:45 +0200)
commitc88f7328bb0fff66520fc9164f02b1d06e083c1b
treed03bbeddbba455607234c67d7270194368d48d7d
parent6871a676aa534e8f218279672e0445c725f81026
jbd2: remove wrong sb->s_sequence check

commit e6eff39dd0fe4190c6146069cc16d160e71d1148 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>
fs/jbd2/journal.c