Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Invalidate all data from frontswap associated with all offsets for the* specified swaptype.

Proto:void __frontswap_invalidate_area(unsigned type)

Type:void

Parameter:

TypeParameterName
unsignedtype
355  sis = swap_info[type]
358  VM_BUG_ON(!swap_ops are added by frontswap_register_ops, and provide the* frontswap "backend" implementation functions. Multiple implementations* may be registered, but implementations can never deregister. This)
359  VM_BUG_ON(sis == NULL)
361  If (swap in-use, one bit per page == NULL) Then Return
364  for_each_frontswap_ops(ops)
365  invalidate_area(type)
366  atomic_set( & swap pages in-use counter , 0)
367  bitmap_zero(swap in-use, one bit per page , xtent of the swap_map )