Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit_tree.c Create Date:2022-07-28 11:30:30
Last Modify:2022-05-22 16:43:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Remove tree from chunks. If 'tagged' is set, remove tree only from tagged* chunks. The function expects tagged chunks are all at the beginning of the* chunks list.

Proto:static void prune_tree_chunks(struct audit_tree *victim, bool tagged)

Type:void

Parameter:

TypeParameterName
struct audit_tree *victim
booltagged
575  spin_lock( & hash_lock)
576  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
581  p = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & chunks, structnode, list)
583  If tagged && Not ( index; upper bit indicates 'will prune' & 1U << 31 ) Then Break
585  chunk = agging and untagging inodes with trees
586  mark = mark
587  remove_chunk_node(chunk, p)
589  If Not mark Then Continue
591  fsnotify_get_mark(mark)
592  spin_unlock( & hash_lock)
594  untag_chunk(chunk, mark)
595  fsnotify_put_mark(mark)
597  spin_lock( & hash_lock)
599  spin_unlock( & hash_lock)
600  put_tree(victim)
Caller
NameDescribe
prune_onesh killing struct audit_tree
trim_markedrim the uncommitted chunks from tree