Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get the next mount in the propagation tree

Proto:static struct mount *propagation_next(struct mount *m, struct mount *origin)

Type:struct mount

Parameter:

TypeParameterName
struct mount *m
struct mount *origin
153  If Not IS_MNT_NEW(m) && Not list_empty - tests whether a list is empty*@head: the list to test. Then Return first_slave(m)
156  When 1 cycle
157  master = slave is on master->mnt_slave_list
161  Return If next == origin Then NULL Else next
162  Else if next != list of slave mounts Then Return next_slave(m)
166  m = master
Caller
NameDescribe
propagate_mount_busyheck if the mount 'mnt' can be unmounted successfully.*@mnt: the mount to be checked for unmount* NOTE: unmounting 'mnt' would naturally propagate to all* other mounts its parent propagates to.* Check if any of these mounts that **do not have submounts**
propagate_mount_unlockClear MNT_LOCKED when it can be shown to be safe.* mount_lock lock must be held for write
propagate_umountllect all mounts that receive propagation from the mount in @list,* and return these additional mounts in the same list.*@list: the list of mounts to be unmounted.* vfsmount lock must be held for write