projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b815bdc
)
f2fs: fix wrong return value of f2fs_bmap_compress()
author
Chao Yu
<yuchao0@huawei.com>
Sun, 28 Jun 2020 12:29:38 +0000
(20:29 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 8 Jul 2020 04:51:46 +0000
(21:51 -0700)
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
patch
|
blob
|
history
diff --git
a/fs/f2fs/data.c
b/fs/f2fs/data.c
index dfd32251535706bdef9ecd7fdf75aa26e18fe300..91dc7b598961470d3402d0ac509f9ae72e6c8629 100644
(file)
--- 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
}