Home
last modified time | relevance | path

Searched hist:"8 c762b4e1921f076e19e6f3cdfaaaf564981473c" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/ext4/
H A Dfast_commit.cdiff 8c762b4e1921f076e19e6f3cdfaaaf564981473c Wed Jul 24 11:11:18 CDT 2024 Luis Henriques (SUSE) <luis.henriques@linux.dev> ext4: fix incorrect tid assumption in ext4_fc_mark_ineligible()

commit ebc4b2c1ac92fc0f8bf3f5a9c285a871d5084a6b upstream.

Function jbd2_journal_shrink_checkpoint_list() assumes that '0' is not a
valid value for transaction IDs, which is incorrect.

Furthermore, the sbi->s_fc_ineligible_tid handling also makes the same
assumption by being initialised to '0'. Fortunately, the sb flag
EXT4_MF_FC_INELIGIBLE can be used to check whether sbi->s_fc_ineligible_tid
has been previously set instead of comparing it with '0'.

Signed-off-by: Luis Henriques (SUSE) <luis.henriques@linux.dev>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20240724161119.13448-5-luis.henriques@linux.dev
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>