OSDN Git Service

f2fs: disallow direct IO in atomic write
authorChao Yu <yuchao0@huawei.com>
Thu, 25 Jul 2019 14:39:11 +0000 (22:39 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 23 Aug 2019 14:57:12 +0000 (07:57 -0700)
commit038d06984f5c50a101c1cf47bc6419064042716d
tree28a98c49b345d8d1326688afc4a67f0f8ad03ad3
parentfe973b065bce0e61414c33251afae501a757f8c6
f2fs: disallow direct IO in atomic write

Atomic write needs page cache to cache data of transaction,
direct IO should never be allowed in atomic write, detect
and deny it when open atomic write file.

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