f2fs do DIO write make file corruption

From: Wu Bo
Date: Tue Aug 10 2021 - 22:56:34 EST


I use the following command to create a file, the file may got corruption:
f2fs_io write 2 0 512 inc_num dio $path

And when I use bio or to set the chunk size to 1 block, the file is normal. The commands as following:
f2fs_io write 2 0 512 inc_num buffered $path
f2fs_io write 1 0 512 inc_num dio $path

I find this bug on old kernel version 4.14.117, and not find on version 4.19.152. So this bug is fixed. Can anyone can tell me which patch fixed this bug?