OSDN Git Service

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>
Thu, 16 Nov 2017 05:48:49 +0000 (21:48 -0800)
commit75d3164ae128764bfef899df03a1facd31ab2f21
tree432e556a07ae7b4b5a52a8d2ffbf80054d2011df
parent4de0ceb6b7ef46851b82251e2470cd81920d48cc
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