mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 14:23:49 +01:00
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:
1 parent
59efe53e38
commit
3910b513fc
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user