Skip to content

Commit 3910b51

Browse files
Shida Zhangtytso
authored andcommitted
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>
1 parent 59efe53 commit 3910b51

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
@@ -1371,9 +1371,9 @@ static void ext4_journalled_zero_new_buffers(handle_t *handle,
13711371
size = min(to, block_end) - start;
13721372

13731373
folio_zero_range(folio, start, size);
1374-
write_end_fn(handle, inode, bh);
13751374
}
13761375
clear_buffer_new(bh);
1376+
write_end_fn(handle, inode, bh);
13771377
}
13781378
}
13791379
block_start = block_end;

0 commit comments

Comments
 (0)