Skip to content

Commit c2a559b

Browse files
yangerkuntytso
authored andcommitted
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: yangerkun <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]> Reviewed-by: Ritesh Harjani <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 0008633 commit c2a559b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1973,7 +1973,7 @@ static int ext4_writepage(struct page *page,
19731973
bool keep_towrite = false;
19741974

19751975
if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb)))) {
1976-
ext4_invalidatepage(page, 0, PAGE_SIZE);
1976+
inode->i_mapping->a_ops->invalidatepage(page, 0, PAGE_SIZE);
19771977
unlock_page(page);
19781978
return -EIO;
19791979
}

0 commit comments

Comments
 (0)