diff options
author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2022-01-02 12:00:14 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2022-01-04 23:44:46 +0800 |
commit | c521e3ad6cc980df6f3bdd2616808ecb973af880 (patch) | |
tree | 710131cd19cc62d9beff6c35b85a66aa8bdf8de8 /fs/erofs/internal.h | |
parent | fdf80a4793021c2f27953b3075f401a497519ba4 (diff) | |
download | linux-c521e3ad6cc980df6f3bdd2616808ecb973af880.tar.gz |
erofs: use meta buffers for inode operations
Get rid of old erofs_get_meta_page() within inode operations by
using on-stack meta buffers in order to prepare subpage and folio
features.
Link: https://lore.kernel.org/r/20220102040017.51352-3-hsiangkao@linux.alibaba.com
Reviewed-by: Yue Hu <huyue2@yulong.com>
Reviewed-by: Liu Bo <bo.liu@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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h index 7053f1c4171d..f1e4eb3025f6 100644 --- a/fs/erofs/internal.h +++ b/fs/erofs/internal.h @@ -475,6 +475,9 @@ struct erofs_map_dev { /* data.c */ extern const struct file_operations erofs_file_fops; struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr); +void erofs_put_metabuf(struct erofs_buf *buf); +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); int erofs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, u64 start, u64 len); |