f2fs: convert inline data for direct I/O & FI_NO_PREALLOC
authorWeichao Guo <guoweichao@huawei.com>
Fri, 29 Sep 2017 14:43:23 +0000 (22:43 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 01:21:44 +0000 (17:21 -0800)
commitd54bf9da4f5075ba7a422998951987a55b6eeb6a
tree54765c5b2fdbd0536da2d7b52a50c30cb4fd1982
parent32c57300f669d6d669c5eaa369ce17cb216008c9
f2fs: convert inline data for direct I/O & FI_NO_PREALLOC

In FI_NO_PREALLOC cases, direct I/O path may allocate blocks for an
inode but keep its inline data flag. This inconsistency may trigger
vfs clear_inode nrpages bug_on when evicting the inode. We should
convert inline data first in this case.

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