From: Chao Yu Date: Sun, 28 Jun 2020 12:29:38 +0000 (+0800) Subject: f2fs: fix wrong return value of f2fs_bmap_compress() X-Git-Tag: v5.9-rc1~69^2~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=250e84d725479914aa6f3feec1191c5f1ea3c057;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index dfd3225153570..91dc7b5989614 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -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 }