函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\zswap.c Create Date:2022-07-27 16:53:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Carries out the common pattern of freeing and entry's zpool allocation,* freeing the entry itself, and decrementing the number of stored pages.

函数原型:static void zswap_free_entry(struct zswap_entry *entry)

返回类型:void

参数:

类型参数名称
struct zswap_entry *entry
325  如果非 the length in bytes of the compressed page data. Needed duringatomic_dec( & The number of same-value filled pages currently stored in zswap )
327  否则
328  zpool_free(zpool, zpool allocation handle that stores the compressed page data)
329  zswap_pool_put( the zswap_pool the entry's data is in)
331  zswap_entry_cache_free(entry)
332  atomic_dec( & The number of compressed pages currently stored in zswap )
333  zswap_update_total_size()
调用者
名称描述
zswap_entry_putaller must hold the tree lock* remove from the tree and free it, if nobody reference the entry
zswap_frontswap_invalidate_areas all zswap entries for the given swap type