Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:NOTE: unmounting 'mnt' naturally propagates to all other mounts its* parent propagates to.

Proto:static bool __propagate_umount(struct mount *mnt, struct list_head *to_umount, struct list_head *to_restore)

Type:bool

Parameter:

TypeParameterName
struct mount *mnt
struct list_head *to_umount
struct list_head *to_restore
445  bool progress = false
452  If mnt_flags & (MNT_UMOUNT | MNT_MARKED) Then Go to out
459  If mnt_mountpoint == root of the mounted tree Then Continue
461  If Not list_empty - tests whether a list is empty*@head: the list to test. && IS_MNT_MARKED(child) Then Continue
464  Go to children
468  SET_MNT_MARK(mnt)
469  progress = true
472  If Not IS_MNT_LOCKED(mnt) Then
473  umount_one(mnt, to_umount)
474  Else
475  children :
476  list_move_tail - delete from one list and add as another's tail*@list: the entry to move*@head: the head that will follow our entry
478  out :
479  Return progress
Caller
NameDescribe
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