f2fs: fix wrong return value of f2fs_bmap_compress()
authorChao Yu <yuchao0@huawei.com>
Sun, 28 Jun 2020 12:29:38 +0000 (20:29 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 8 Jul 2020 04:51:46 +0000 (21:51 -0700)
commit250e84d725479914aa6f3feec1191c5f1ea3c057
tree99c557d0fef57d4c5cfdfdaa1eaef5aa250d5c83
parentb815bdc7817d5a27410a33475f3401bd47f5854e
f2fs: fix wrong return value of f2fs_bmap_compress()

If compression is disable, we should return zero rather than -EOPNOTSUPP
to indicate f2fs_bmap() is not supported.

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