Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

jbd2: correct comment jbd2_mark_journal_empty

After jbd2_mark_journal_empty, journal log is supposed to be empty.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20240801013815.2393869-8-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>

authored by

Kemeng Shi and committed by
Theodore Ts'o
1862304b f47aa3eb

+1 -1
+1 -1
fs/jbd2/journal.c
··· 1938 1938 if (had_fast_commit) 1939 1939 jbd2_set_feature_fast_commit(journal); 1940 1940 1941 - /* Log is no longer empty */ 1941 + /* Log is empty */ 1942 1942 write_lock(&journal->j_state_lock); 1943 1943 journal->j_flags |= JBD2_FLUSHED; 1944 1944 write_unlock(&journal->j_state_lock);