diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-12 01:46:40 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-25 19:15:50 +0100 |
commit | c040ff9d69fd1d782fe577ba9e35c1f5798158ae (patch) | |
tree | b833c477d306b768d88be6203a4cf0ecc55dbb61 /fs/efs | |
parent | f2fs: use err for f2fs_preallocate_blocks (diff) | |
download | linux-c040ff9d69fd1d782fe577ba9e35c1f5798158ae.tar.xz linux-c040ff9d69fd1d782fe577ba9e35c1f5798158ae.zip |
f2fs: fix redundant block allocation
In direct_IO path of f2fs_file_write_iter(),
1. f2fs_preallocate_blocks(F2FS_GET_BLOCK_PRE_DIO)
-> allocate LBA X
2. f2fs_direct_IO()
-> return 0;
Then,
f2fs_write_data_page() will allocate another LBA X+1.
This makes EIO triggered by HM-SMR.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/efs')
0 files changed, 0 insertions, 0 deletions