Commit c2a559bc authored by yangerkun's avatar yangerkun Committed by Theodore Ts'o

ext4: use matching invalidatepage in ext4_writepage

Run generic/388 with journal data mode sometimes may trigger the warning
in ext4_invalidatepage. Actually, we should use the matching invalidatepage
in ext4_writepage.
Signed-off-by: default avataryangerkun <>
Signed-off-by: default avatarTheodore Ts'o <>
Reviewed-by: default avatarRitesh Harjani <>
Reviewed-by: default avatarJan Kara <>
Link: default avatarTheodore Ts'o <>
parent 00086336
......@@ -1973,7 +1973,7 @@ static int ext4_writepage(struct page *page,
bool keep_towrite = false;
if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) {
ext4_invalidatepage(page, 0, PAGE_SIZE);
inode->i_mapping->a_ops->invalidatepage(page, 0, PAGE_SIZE);
return -EIO;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment