summaryrefslogtreecommitdiffstats
path: root/fs/erofs/fscache.c
diff options
context:
space:
mode:
authorJingbo Xu <jefflexu@linux.alibaba.com>2023-02-09 03:48:25 +0100
committerGao Xiang <hsiangkao@linux.alibaba.com>2023-02-15 01:11:26 +0100
commit8b58f9f02162124c2149779af401c8115c70b649 (patch)
treeba68c4436a2a1d968ef41d136171e30f2ee27954 /fs/erofs/fscache.c
parenterofs: update print symbols for various flags in trace (diff)
downloadlinux-8b58f9f02162124c2149779af401c8115c70b649.tar.xz
linux-8b58f9f02162124c2149779af401c8115c70b649.zip
erofs: remove unused EROFS_GET_BLOCKS_RAW flag
For erofs_map_blocks() and erofs_map_blocks_flatmode(), the flags argument is always EROFS_GET_BLOCKS_RAW. Thus remove the unused flags parameter for these two functions. Besides EROFS_GET_BLOCKS_RAW is originally introduced for reading compressed (raw) data for compressed files. However it's never used actually and let's remove it now. Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com> Reviewed-by: Yue Hu <huyue2@coolpad.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Reviewed-by: Chao Yu <chao@kernel.org> Link: https://lore.kernel.org/r/20230209024825.17335-2-jefflexu@linux.alibaba.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs/fscache.c')
-rw-r--r--fs/erofs/fscache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/erofs/fscache.c b/fs/erofs/fscache.c
index 014e20962376..c47cc8bfdd17 100644
--- a/fs/erofs/fscache.c
+++ b/fs/erofs/fscache.c
@@ -207,7 +207,7 @@ static int erofs_fscache_data_read_slice(struct erofs_fscache_request *primary)
int ret;
map.m_la = pos;
- ret = erofs_map_blocks(inode, &map, EROFS_GET_BLOCKS_RAW);
+ ret = erofs_map_blocks(inode, &map);
if (ret)
return ret;