summaryrefslogtreecommitdiff
path: root/fs/erofs/internal.h
diff options
context:
space:
mode:
authorJeffle Xu <jefflexu@linux.alibaba.com>2022-04-25 15:21:31 +0300
committerGao Xiang <hsiangkao@linux.alibaba.com>2022-05-17 19:11:18 +0300
commit94d78946704f7facd010b9dee5e158921ab37398 (patch)
tree23cb6c494fce09cfab0f090bbd9a22defcadd5b3 /fs/erofs/internal.h
parent99302ebd3af7895cb5312e80e65d4db5aed5a72d (diff)
downloadlinux-94d78946704f7facd010b9dee5e158921ab37398.tar.xz
erofs: make erofs_map_blocks() generally available
... so that it can be used in the following introduced fscache mode. Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Link: https://lore.kernel.org/r/20220425122143.56815-10-jefflexu@linux.alibaba.com Acked-by: Chao Yu <chao@kernel.org> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs/internal.h')
-rw-r--r--fs/erofs/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h
index df0c05ca2910..c83bd3965cb5 100644
--- a/fs/erofs/internal.h
+++ b/fs/erofs/internal.h
@@ -461,6 +461,8 @@ void *erofs_read_metabuf(struct erofs_buf *buf, struct super_block *sb,
int erofs_map_dev(struct super_block *sb, struct erofs_map_dev *dev);
int erofs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
u64 start, u64 len);
+int erofs_map_blocks(struct inode *inode,
+ struct erofs_map_blocks *map, int flags);
/* inode.c */
static inline unsigned long erofs_inode_hash(erofs_nid_t nid)