summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorShida Zhang <zhangshida@kylinos.cn>2024-08-30 07:37:36 +0200
committerTheodore Ts'o <tytso@mit.edu>2024-09-04 04:14:17 +0200
commit3910b513fcdf33030798755c722174ef4a827d2a (patch)
tree449b0eee4dc0f4e2ab24de0d99c773ef480fa0e4 /fs/ext4
parentext4: dax: keep orphan list before truncate overflow allocated blocks (diff)
downloadlinux-3910b513fcdf33030798755c722174ef4a827d2a.tar.xz
linux-3910b513fcdf33030798755c722174ef4a827d2a.zip
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 <jack@suse.cz> Signed-off-by: Shida Zhang <zhangshida@kylinos.cn> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20240830053739.3588573-2-zhangshida@kylinos.cn Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index a6f1286e824d..5ffd56ceeddd 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -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;