f2fs: update i_size after DIO completion
This is related to
ee70daaba8
("xfs: update i_size after unwritten conversion in dio completion")
If we update i_size during dio_write, dio_read can read out stale data, which
breaks xfstests/465.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
@@ -599,6 +599,7 @@ enum {
|
||||
F2FS_GET_BLOCK_DEFAULT,
|
||||
F2FS_GET_BLOCK_FIEMAP,
|
||||
F2FS_GET_BLOCK_BMAP,
|
||||
F2FS_GET_BLOCK_DIO,
|
||||
F2FS_GET_BLOCK_PRE_DIO,
|
||||
F2FS_GET_BLOCK_PRE_AIO,
|
||||
F2FS_GET_BLOCK_PRECACHE,
|
||||
|
Reference in New Issue
Block a user