diff options
author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2022-03-16 02:22:45 +0100 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2022-03-16 17:09:02 +0100 |
commit | fe5de5859d44eafd5828ec4910cd52cdad8ada1f (patch) | |
tree | f430514691d57e1cc9ef8d065c6a8645ddd67c50 /fs/erofs/internal.h | |
parent | fs: erofs: add sanity check for kobject in erofs_unregister_sysfs (diff) | |
download | linux-fe5de5859d44eafd5828ec4910cd52cdad8ada1f.tar.xz linux-fe5de5859d44eafd5828ec4910cd52cdad8ada1f.zip |
erofs: use meta buffers for reading directories
Previously, directory inodes are directly handled with page cache
interfaces.
In order to support sub-page directory blocks and folios, let's
convert them into the latest metabuf infrastructure as well and
this patch addresses the readdir case first.
Link: https://lore.kernel.org/r/20220316012246.95131-1-hsiangkao@linux.alibaba.com
Reviewed-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h index 5aa2cf2c2f80..5298c4ee277d 100644 --- a/fs/erofs/internal.h +++ b/fs/erofs/internal.h @@ -479,6 +479,8 @@ struct erofs_map_dev { extern const struct file_operations erofs_file_fops; void erofs_unmap_metabuf(struct erofs_buf *buf); void erofs_put_metabuf(struct erofs_buf *buf); +void *erofs_bread(struct erofs_buf *buf, struct inode *inode, + erofs_blk_t blkaddr, enum erofs_kmap_type type); void *erofs_read_metabuf(struct erofs_buf *buf, struct super_block *sb, erofs_blk_t blkaddr, enum erofs_kmap_type type); int erofs_map_dev(struct super_block *sb, struct erofs_map_dev *dev); |