diff options
author | Chao Yu <yuchao0@huawei.com> | 2020-02-24 14:20:15 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-03-19 21:41:26 +0300 |
commit | 7bd2935870c05048d8a7db4f502524e78e516617 (patch) | |
tree | 00f4980eaaa2b2be36d06bca185f954529386b35 /fs/f2fs/file.c | |
parent | ca9e968a5e637a105aa3b847a9fb489cb53abd8c (diff) | |
download | linux-7bd2935870c05048d8a7db4f502524e78e516617.tar.xz |
f2fs: fix to show tracepoint correctly
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 9abd6cfe3e5a..e3c294372db8 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -3520,8 +3520,10 @@ static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) goto out; } - if (!f2fs_is_compress_backend_ready(inode)) - return -EOPNOTSUPP; + if (!f2fs_is_compress_backend_ready(inode)) { + ret = -EOPNOTSUPP; + goto out; + } if (iocb->ki_flags & IOCB_NOWAIT) { if (!inode_trylock(inode)) { |