1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * Copyright (C), 2008-2021, OPPO Mobile Comm Corp., Ltd. 4 * Created by Huang Jianan <huangjianan@oppo.com> 5 */ 6 #ifndef __EROFS_COMPRESS_HINTS_H 7 #define __EROFS_COMPRESS_HINTS_H 8 9 #ifdef __cplusplus 10 extern "C" 11 { 12 #endif 13 14 #include "erofs/internal.h" 15 #include <sys/types.h> 16 #include <regex.h> 17 18 struct erofs_compress_hints { 19 struct list_head list; 20 21 regex_t reg; 22 unsigned int physical_clusterblks; 23 }; 24 25 bool z_erofs_apply_compress_hints(struct erofs_inode *inode); 26 void erofs_cleanup_compress_hints(void); 27 int erofs_load_compress_hints(void); 28 29 #ifdef __cplusplus 30 } 31 #endif 32 33 #endif 34