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>
This commit is contained in:
Chao Yu 2020-06-28 20:29:38 +08:00 committed by Jaegeuk Kim
parent b815bdc781
commit 250e84d725

View file

@ -3703,10 +3703,9 @@ static sector_t f2fs_bmap_compress(struct inode *inode, sector_t block)
}
f2fs_put_dnode(&dn);
return blknr;
#else
return -EOPNOTSUPP;
return 0;
#endif
}