f2fs: fix return value in f2fs_ioc_commit_atomic_write
authorChao Yu <yuchao0@huawei.com>
Wed, 18 Apr 2018 09:45:02 +0000 (17:45 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 31 May 2018 18:31:46 +0000 (11:31 -0700)
commitb169c3c560e2b133860f0496d0872699c9b48d54
tree193dcbb3704ec990ada9d26b789eb6e776e06c5c
parent054afda9991786ead2c2b57cdf3b28d4dd3709f2
f2fs: fix return value in f2fs_ioc_commit_atomic_write

In f2fs_ioc_commit_atomic_write, if file is volatile, return -EINVAL to
indicate that commit failure.

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