#include <linux/zlib.h>
#include "compress.h"
struct z_erofs_deflate { … };
static DEFINE_SPINLOCK(z_erofs_deflate_lock);
static unsigned int z_erofs_deflate_nstrms, z_erofs_deflate_avail_strms;
static struct z_erofs_deflate *z_erofs_deflate_head;
static DECLARE_WAIT_QUEUE_HEAD(z_erofs_deflate_wq);
module_param_named(deflate_streams, z_erofs_deflate_nstrms, uint, 0444);
static void z_erofs_deflate_exit(void)
{ … }
static int __init z_erofs_deflate_init(void)
{ … }
static int z_erofs_load_deflate_config(struct super_block *sb,
struct erofs_super_block *dsb, void *data, int size)
{ … }
static int z_erofs_deflate_decompress(struct z_erofs_decompress_req *rq,
struct page **pgpl)
{ … }
const struct z_erofs_decompressor z_erofs_deflate_decomp = …;