]> git.hungrycats.org Git - linux/commit
jbd2: correctly compare tids with tid_geq function in jbd2_fc_begin_commit
authorKemeng Shi <shikemeng@huaweicloud.com>
Thu, 1 Aug 2024 01:38:08 +0000 (09:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:00:54 +0000 (12:00 +0200)
commite58e570a88f0c62d4043d2b99b0ddb237c1f6ff8
tree50826b60d55862898f427980b29260945b420b67
parent3ced0fe6c0eff032733ea8b38778b34707270138
jbd2: correctly compare tids with tid_geq function in jbd2_fc_begin_commit

commit f0e3c14802515f60a47e6ef347ea59c2733402aa upstream.

Use tid_geq to compare tids to work over sequence number wraps.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Cc: stable@kernel.org
Link: https://patch.msgid.link/20240801013815.2393869-2-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jbd2/journal.c