Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aller must hold the tree lock* remove from the tree and free it, if nobody reference the entry

Proto:static void zswap_entry_put(struct zswap_tree *tree, struct zswap_entry *entry)

Type:void

Parameter:

TypeParameterName
struct zswap_tree *tree
struct zswap_entry *entry
348  refcount = -- the number of outstanding reference to the entry. This is needed
350  BUG_ON(refcount < 0)
351  If refcount == 0 Then
352  zswap_rb_erase( & rbroot, entry)
353  Carries out the common pattern of freeing and entry's zpool allocation,* freeing the entry itself, and decrementing the number of stored pages.
Caller
NameDescribe
zswap_writeback_entry
zswap_frontswap_storeattempts to compress and store an single page
zswap_frontswap_loadrns 0 if the page was successfully decompressed* return -1 on entry not found or error
zswap_frontswap_invalidate_pages an entry in zswap