Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\zswap.c Create Date:2022-07-28 15:22:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__zswap_pool_create_fallback

Proto:static __init struct zswap_pool *__zswap_pool_create_fallback(void)

Type:struct zswap_pool

Parameter:Nothing

571  has_comp = crypto_has_comp(zswap_compressor, 0, 0)
572  If Not has_comp && strcmp(zswap_compressor, Crypto compressor to use ) Then
573  pr_err("compressor %s not available, using default %s\n", zswap_compressor, Crypto compressor to use )
575  param_free_charp( & zswap_compressor)
576  zswap_compressor = Crypto compressor to use
577  has_comp = crypto_has_comp(zswap_compressor, 0, 0)
579  If Not has_comp Then
580  pr_err("default compressor %s not available\n", zswap_compressor)
582  param_free_charp( & zswap_compressor)
583  zswap_compressor = unables
586  has_zpool = zpool_has_pool(zswap_zpool_type)
587  If Not has_zpool && strcmp(zswap_zpool_type, Compressed storage zpool to use ) Then
588  pr_err("zpool %s not available, using default %s\n", zswap_zpool_type, Compressed storage zpool to use )
590  param_free_charp( & zswap_zpool_type)
591  zswap_zpool_type = Compressed storage zpool to use
592  has_zpool = zpool_has_pool(zswap_zpool_type)
594  If Not has_zpool Then
595  pr_err("default zpool %s not available\n", zswap_zpool_type)
597  param_free_charp( & zswap_zpool_type)
598  zswap_zpool_type = unables
601  If Not has_comp || Not has_zpool Then Return NULL
604  Return zswap_pool_create(zswap_zpool_type, zswap_compressor)
Caller
NameDescribe
init_zswapmodule init and exit