compress.h (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) compress.h (267f2492c8f71dac44399988b510f9bf6b074a51)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2019 HUAWEI, Inc.
4 * https://www.huawei.com/
5 */
6#ifndef __EROFS_FS_COMPRESS_H
7#define __EROFS_FS_COMPRESS_H
8
9#include "internal.h"
10
11struct z_erofs_decompress_req {
12 struct super_block *sb;
13 struct page **in, **out;
14
15 unsigned short pageofs_in, pageofs_out;
16 unsigned int inputsize, outputsize;
17
18 /* indicate the algorithm will be used for decompression */
19 unsigned int alg;
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2019 HUAWEI, Inc.
4 * https://www.huawei.com/
5 */
6#ifndef __EROFS_FS_COMPRESS_H
7#define __EROFS_FS_COMPRESS_H
8
9#include "internal.h"
10
11struct z_erofs_decompress_req {
12 struct super_block *sb;
13 struct page **in, **out;
14
15 unsigned short pageofs_in, pageofs_out;
16 unsigned int inputsize, outputsize;
17
18 /* indicate the algorithm will be used for decompression */
19 unsigned int alg;
20 bool inplace_io, partial_decoding;
20 bool inplace_io, partial_decoding, fillgaps;
21};
22
23struct z_erofs_decompressor {
24 int (*decompress)(struct z_erofs_decompress_req *rq,
25 struct page **pagepool);
26 char *name;
27};
28

--- 70 unchanged lines hidden ---
21};
22
23struct z_erofs_decompressor {
24 int (*decompress)(struct z_erofs_decompress_req *rq,
25 struct page **pagepool);
26 char *name;
27};
28

--- 70 unchanged lines hidden ---