Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:s all zswap entries for the given swap type

Proto:static void zswap_frontswap_invalidate_area(unsigned type)

Type:void

Parameter:

TypeParameterName
unsignedtype
1204  tree = zswap_trees[type]
1207  If Not tree Then Return
1211  spin_lock( & lock)
1212  ree_postorder_for_each_entry_safe - iterate in post-order over rb_root of* given type allowing the backing memory of @pos to be invalidated*@pos: the 'type *' to use as a loop cursor.*@n: another 'type *' to use as temporary storage(entry, n, & rbroot, rbnode)
1213  Carries out the common pattern of freeing and entry's zpool allocation,* freeing the entry itself, and decrementing the number of stored pages.
1214  rbroot =
1215  spin_unlock( & lock)
1216  kfree(tree)
1217  zswap_trees[type] = NULL