mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
jbd2: say what jbd2_freeze_jh_data()'s assertion is actually checking
The assertion that the buffer about to be copied out is up to date is correct and stays, but its message - "Possible IO failure" - describes what a buffer that is not up to date used to mean rather than what is being checked. Once this series stops clearing BH_Uptodate on write error, that reading is wrong twice over. A failed write no longer makes a buffer not up to date, and a buffer that does carry BH_Write_EIO is fine here: it still holds valid data and the journal will write it again. What the assertion is really guarding is that there is something valid to copy at all. Say that instead. Suggested-by: Jan Kara <jack@suse.cz> Acked-by: Weidong Zhu <weizhu@fiu.edu> Signed-off-by: Chao Shi <coshi036@gmail.com> Link: https://patch.msgid.link/713ffb9c0cdfe55499b3cdd2c06a59a2c152c46c.1785951556.git.coshi036@gmail.com Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
parent
a05d5c40af
commit
b1c88ae0b5
|
|
@ -920,7 +920,7 @@ static void jbd2_freeze_jh_data(struct journal_head *jh)
|
|||
char *source;
|
||||
struct buffer_head *bh = jh2bh(jh);
|
||||
|
||||
J_EXPECT_JH(jh, buffer_uptodate(bh), "Possible IO failure.\n");
|
||||
J_EXPECT_JH(jh, buffer_uptodate(bh), "Buffer not uptodate!\n");
|
||||
source = kmap_local_folio(bh->b_folio, bh_offset(bh));
|
||||
/* Fire data frozen trigger just before we copy the data */
|
||||
jbd2_buffer_frozen_trigger(jh, source, jh->b_triggers);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user