Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Invalidate any data from frontswap associated with the specified swaptype* and offset so that a subsequent "get" will fail.

Proto:void __frontswap_invalidate_page(unsigned type, unsigned long offset)

Type:void

Parameter:

TypeParameterName
unsignedtype
unsigned longoffset
333  sis = swap_info[type]
336  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)
337  VM_BUG_ON(sis == NULL)
339  If Not __frontswap_test(sis, offset) Then Return
342  for_each_frontswap_ops(ops)
343  invalidate_page(type, offset)
344  __frontswap_clear(sis, offset)
345  inc_frontswap_invalidates()