ext4: persist the new uptodate buffers in ext4_journalled_zero_new_buffers

For new uptodate buffers we also need to call write_end_fn() to persist the
uptodate content, similarly as folio_zero_new_buffers() does it.

Suggested-by: Jan Kara <[email protected]>
Signed-off-by: Shida Zhang <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
This commit is contained in:
Shida Zhang authored and Theodore Ts'o committed 2024-09-03 22:14:17 -04:00
1 parent 59efe53e38
commit 3910b513fc
1 file changed
+1 -1
+1 -1
View File
@@ -1371,9 +1371,9 @@ static void ext4_journalled_zero_new_buffers(handle_t *handle,
size = min(to, block_end) - start;
folio_zero_range(folio, start, size);
write_end_fn(handle, inode, bh);
}
clear_buffer_new(bh);
write_end_fn(handle, inode, bh);
}
}
block_start = block_end;