@@ -472,12 +472,6 @@ static inline void *erofs_vm_map_ram(struct page **pages, unsigned int count)
472
472
return NULL ;
473
473
}
474
474
475
- void * erofs_get_pcpubuf (unsigned int requiredpages );
476
- void erofs_put_pcpubuf (void * ptr );
477
- int erofs_pcpubuf_growsize (unsigned int nrpages );
478
- void __init erofs_pcpubuf_init (void );
479
- void erofs_pcpubuf_exit (void );
480
-
481
475
int erofs_register_sysfs (struct super_block * sb );
482
476
void erofs_unregister_sysfs (struct super_block * sb );
483
477
int __init erofs_init_sysfs (void );
@@ -512,6 +506,11 @@ int z_erofs_load_lz4_config(struct super_block *sb,
512
506
struct z_erofs_lz4_cfgs * lz4 , int len );
513
507
int z_erofs_map_blocks_iter (struct inode * inode , struct erofs_map_blocks * map ,
514
508
int flags );
509
+ void * erofs_get_pcpubuf (unsigned int requiredpages );
510
+ void erofs_put_pcpubuf (void * ptr );
511
+ int erofs_pcpubuf_growsize (unsigned int nrpages );
512
+ void __init erofs_pcpubuf_init (void );
513
+ void erofs_pcpubuf_exit (void );
515
514
#else
516
515
static inline void erofs_shrinker_register (struct super_block * sb ) {}
517
516
static inline void erofs_shrinker_unregister (struct super_block * sb ) {}
@@ -529,6 +528,8 @@ static inline int z_erofs_load_lz4_config(struct super_block *sb,
529
528
}
530
529
return 0 ;
531
530
}
531
+ static inline void erofs_pcpubuf_init (void ) {}
532
+ static inline void erofs_pcpubuf_exit (void ) {}
532
533
#endif /* !CONFIG_EROFS_FS_ZIP */
533
534
534
535
#ifdef CONFIG_EROFS_FS_ZIP_LZMA
0 commit comments