函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:mm\zswap.c Create Date:2022-07-27 16:53:07
首页 Copyright©Brick

415
416
417
418
419
420
421
422
423
424
425
static int zswap_cpu_comp_dead(unsigned int cpu, struct hlist_node *node)
{
    struct zswap_pool *pool = hlist_entry(node, struct zswap_pool, node);
    struct crypto_comp *tfm;
 
    tfm = *per_cpu_ptr(pool->tfm, cpu);
    if (!IS_ERR_OR_NULL(tfm))
        crypto_free_comp(tfm);
    *per_cpu_ptr(pool->tfm, cpu) = NULL;
    return 0;
}