f2fs: continue to do direct IO if we only preallocate partial blocks
authorChao Yu <yuchao0@huawei.com>
Wed, 3 Jan 2018 09:30:19 +0000 (17:30 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 27 Jan 2018 21:29:49 +0000 (13:29 -0800)
commit27f9e55195b1fa46fd038e127bfb323750870db9
treefea44255e7777962a4117da0ae61e01734d3af82
parentf2f13783146435c99ffc794ec1a8b1bbc7cbec6d
f2fs: continue to do direct IO if we only preallocate partial blocks

While doing direct IO, if we run out-of-space when we preallocate blocks,
we should not return ENOSPC error directly, instead, we should continue
to do following direct IO, which will keep directIO of f2fs acting like
other filesystems.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c