1 /* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ 2 /* 3 * Copyright (C) 2019 HUAWEI, Inc. 4 * http://www.huawei.com/ 5 * Created by Gao Xiang <gaoxiang25@huawei.com> 6 */ 7 #ifndef __EROFS_COMPRESS_H 8 #define __EROFS_COMPRESS_H 9 10 #ifdef __cplusplus 11 extern "C" 12 { 13 #endif 14 15 #include "internal.h" 16 17 #define EROFS_CONFIG_COMPR_MAX_SZ (3000 * 1024) 18 #define EROFS_CONFIG_COMPR_MIN_SZ (32 * 1024) 19 20 void z_erofs_drop_inline_pcluster(struct erofs_inode *inode); 21 int erofs_write_compressed_file(struct erofs_inode *inode); 22 23 int z_erofs_compress_init(struct erofs_buffer_head *bh); 24 int z_erofs_compress_exit(void); 25 26 const char *z_erofs_list_available_compressors(unsigned int i); 27 28 #ifdef __cplusplus 29 } 30 #endif 31 32 #endif 33