diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-11 16:46:40 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-25 10:15:50 -0800 |
commit | c040ff9d69fd1d782fe577ba9e35c1f5798158ae (patch) | |
tree | b833c477d306b768d88be6203a4cf0ecc55dbb61 /fs/f2fs/file.c | |
parent | a7de608691f766cd148971a71d4f13aa1692d4c8 (diff) | |
download | talos-obmc-linux-c040ff9d69fd1d782fe577ba9e35c1f5798158ae.tar.gz talos-obmc-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/f2fs/file.c')
0 files changed, 0 insertions, 0 deletions