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, 28 Jun 2018 22:49:24 +0000 (15:49 -0700)
commit4470ece5c075fd47f62a5fb8923d49850bfb7e69
tree9d588136dcdbacaef011372896be3efea564cb3b
parent318a9d5ae78c34b89444ab6a1c9230ebaf5fb050
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