| /* SPDX-License-Identifier: GPL-2.0-only */ |
| * Phillip Lougher <phillip@squashfs.org.uk> |
| struct squashfs_page_actor { |
| void *(*squashfs_first_page)(struct squashfs_page_actor *); |
| void *(*squashfs_next_page)(struct squashfs_page_actor *); |
| void (*squashfs_finish_page)(struct squashfs_page_actor *); |
| extern struct squashfs_page_actor *squashfs_page_actor_init(void **buffer, |
| extern struct squashfs_page_actor *squashfs_page_actor_init_special( |
| struct squashfs_sb_info *msblk, |
| struct page **page, int pages, int length); |
| static inline struct page *squashfs_page_actor_free(struct squashfs_page_actor *actor) |
| struct page *last_page = actor->last_page; |
| kfree(actor->tmp_buffer); |
| static inline void *squashfs_first_page(struct squashfs_page_actor *actor) |
| return actor->squashfs_first_page(actor); |
| static inline void *squashfs_next_page(struct squashfs_page_actor *actor) |
| return actor->squashfs_next_page(actor); |
| static inline void squashfs_finish_page(struct squashfs_page_actor *actor) |
| actor->squashfs_finish_page(actor); |
| static inline void squashfs_actor_nobuff(struct squashfs_page_actor *actor) |