]> www.infradead.org Git - users/jedix/linux-maple.git/commit
jbd2: Fix comment describing journal_init_common()
authorDaniel Martín Gómez <dalme@riseup.net>
Thu, 7 Nov 2024 14:45:38 +0000 (15:45 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 13 Nov 2024 17:56:48 +0000 (12:56 -0500)
commit3e7c69cdb053f9edea95502853f35952ab6cbf06
tree8d498c002c9f57b2fe33872d30a669549fe3e2a3
parente06a8c24f6445c2f1b5255caa4f63b38e31c43fa
jbd2: Fix comment describing journal_init_common()

The code indicates that journal_init_common() fills the journal_t object
it returns while the comment incorrectly states that only a few fields are
initialised.  Also, the comment claims that journal structures could be
created from scratch which isn't possible as journal_init_common() calls
journal_load_superblock() which loads and checks journal superblock from
disk.

Signed-off-by: Daniel Martín Gómez <dalme@riseup.net>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20241107144538.3544-1-dalme@riseup.net
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c