@@ -454,8 +454,8 @@ void erofs_shrinker_register(struct super_block *sb);
454454void erofs_shrinker_unregister (struct super_block * sb );
455455int __init erofs_init_shrinker (void );
456456void erofs_exit_shrinker (void );
457- int __init z_erofs_init_zip_subsystem (void );
458- void z_erofs_exit_zip_subsystem (void );
457+ int __init z_erofs_init_subsystem (void );
458+ void z_erofs_exit_subsystem (void );
459459int erofs_try_to_free_all_cached_folios (struct erofs_sb_info * sbi ,
460460 struct erofs_workgroup * egrp );
461461int z_erofs_map_blocks_iter (struct inode * inode , struct erofs_map_blocks * map ,
@@ -472,37 +472,11 @@ static inline void erofs_shrinker_register(struct super_block *sb) {}
472472static inline void erofs_shrinker_unregister (struct super_block * sb ) {}
473473static inline int erofs_init_shrinker (void ) { return 0 ; }
474474static inline void erofs_exit_shrinker (void ) {}
475- static inline int z_erofs_init_zip_subsystem (void ) { return 0 ; }
476- static inline void z_erofs_exit_zip_subsystem (void ) {}
477- static inline int z_erofs_gbuf_init (void ) { return 0 ; }
478- static inline void z_erofs_gbuf_exit (void ) {}
475+ static inline int z_erofs_init_subsystem (void ) { return 0 ; }
476+ static inline void z_erofs_exit_subsystem (void ) {}
479477static inline int erofs_init_managed_cache (struct super_block * sb ) { return 0 ; }
480478#endif /* !CONFIG_EROFS_FS_ZIP */
481479
482- #ifdef CONFIG_EROFS_FS_ZIP_LZMA
483- int __init z_erofs_lzma_init (void );
484- void z_erofs_lzma_exit (void );
485- #else
486- static inline int z_erofs_lzma_init (void ) { return 0 ; }
487- static inline int z_erofs_lzma_exit (void ) { return 0 ; }
488- #endif /* !CONFIG_EROFS_FS_ZIP_LZMA */
489-
490- #ifdef CONFIG_EROFS_FS_ZIP_DEFLATE
491- int __init z_erofs_deflate_init (void );
492- void z_erofs_deflate_exit (void );
493- #else
494- static inline int z_erofs_deflate_init (void ) { return 0 ; }
495- static inline int z_erofs_deflate_exit (void ) { return 0 ; }
496- #endif /* !CONFIG_EROFS_FS_ZIP_DEFLATE */
497-
498- #ifdef CONFIG_EROFS_FS_ZIP_ZSTD
499- int __init z_erofs_zstd_init (void );
500- void z_erofs_zstd_exit (void );
501- #else
502- static inline int z_erofs_zstd_init (void ) { return 0 ; }
503- static inline int z_erofs_zstd_exit (void ) { return 0 ; }
504- #endif /* !CONFIG_EROFS_FS_ZIP_ZSTD */
505-
506480#ifdef CONFIG_EROFS_FS_ONDEMAND
507481int erofs_fscache_register_fs (struct super_block * sb );
508482void erofs_fscache_unregister_fs (struct super_block * sb );
0 commit comments