Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Free all of a swapdev's extent information

Proto:static void destroy_swap_extents(struct swap_info_struct *sis)

Type:void

Parameter:

TypeParameterName
struct swap_info_struct *sis
2286  When Not RB_EMPTY_ROOT( & of the swap extent rbtree ) cycle
2287  rb = rb_node
2288  se = rb_entry(rb, structswap_extent, rb_node)
2290  rb_erase(rb, & of the swap extent rbtree )
2291  kfree(se)
2294  If SWP_USED etc: see above & SWP_ACTIVATED Then
2295  swap_file = seldom referenced
2296  mapping = f_mapping
2298  SWP_USED etc: see above &= ~SWP_ACTIVATED
2299  If swap_deactivate Then swap_deactivate(swap_file)
Caller
NameDescribe
SYSCALL_DEFINE1
SYSCALL_DEFINE2