diff options
author | Chao Yu <yuchao0@huawei.com> | 2020-02-24 19:20:15 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-03-19 11:41:26 -0700 |
commit | 7bd2935870c05048d8a7db4f502524e78e516617 (patch) | |
tree | 00f4980eaaa2b2be36d06bca185f954529386b35 /fs/f2fs | |
parent | ca9e968a5e637a105aa3b847a9fb489cb53abd8c (diff) | |
download | linux-7bd2935870c05048d8a7db4f502524e78e516617.tar.bz2 |
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')
-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)) { |