OSDN Git Service

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, 8 Feb 2018 02:05:43 +0000 (18:05 -0800)
commit87b8168e9ef006e25036eba5fa0e7aa8ee95880a
tree25928371a6771da6a617ac1f01a3a0516003b890
parent2b4d859bd9d89cd0dd4b2da699930208583488d4
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