Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namespace.c Create Date:2022-07-28 20:09:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Ripoff of 'select_parent()'* search the list of submounts for a given mountpoint, and move any* shrinkable submounts to the 'graveyard' list.

Proto:static int select_submounts(struct mount *parent, struct list_head *graveyard)

Type:int

Parameter:

TypeParameterName
struct mount *parent
struct list_head *graveyard
2922  this_parent = parent
2924  found = 0
2926  repeat :
2927  next = next
2928  resume :
2929  When next != list of children, anchored here cycle
2930  tmp = next
2931  mnt = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(tmp, structmount, mnt_child)
2933  next = next
2934  If Not (mnt_flags & MNT_SHRINKABLE) Then Continue
2940  this_parent = mnt
2941  Go to repeat
2946  found++
2952  If this_parent != parent Then
2953  next = next
2954  this_parent = mnt_parent
2955  Go to resume
2957  Return found
Caller
NameDescribe
shrink_submounts