Home
last modified time | relevance | path

Searched hist:"0 dbc759ae9971568af24def1b01d5b1aa87bd546" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/jbd2/
H A Djournal.cdiff 0dbc759ae9971568af24def1b01d5b1aa87bd546 Fri Aug 11 01:36:05 CDT 2023 Zhang Yi <yi.zhang@huawei.com> jbd2: add fast_commit space check

If JBD2_FEATURE_INCOMPAT_FAST_COMMIT bit is set, it means the journal
have fast commit records need to recover, so the fast commit size
should not be too large, and the leftover normal journal size should
never less than JBD2_MIN_JOURNAL_BLOCKS. If it happens, the
journal->j_last is likely to be wrong and will probably lead to
incorrect journal recovery. So add a check into the
journal_check_superblock(), and drop the pointless check when
initializing the fastcommit parameters.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230811063610.2980059-8-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>