diff options
author | Jingbo Xu <jefflexu@linux.alibaba.com> | 2023-02-09 03:48:25 +0100 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-02-15 01:11:26 +0100 |
commit | 8b58f9f02162124c2149779af401c8115c70b649 (patch) | |
tree | ba68c4436a2a1d968ef41d136171e30f2ee27954 /fs/erofs/fscache.c | |
parent | erofs: update print symbols for various flags in trace (diff) | |
download | linux-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.c | 2 |
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; |