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>
Thu, 4 Jan 2018 06:48:33 +0000 (22:48 -0800)
commitd6d478a14bd3bc77afe813fa9c2ce8ebebf01b2d
tree56773da74c6b620902eb64b65f5480e44f581dc9
parent6279398db76cb7dcdafe42b34273b43a5144e304
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