Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__detach_mounts - lazily unmount all mounts on the specified dentry* During unlink, rmdir, and d_drop it is possible to loose the path* to an existing mountpoint, and wind up leaking the mount

Proto:void __detach_mounts(struct dentry *dentry)

Type:void

Parameter:

TypeParameterName
struct dentry *dentry
1617  namespace_lock()
1618  lock_mount_hash()
1619  mp = lookup_mountpoint(dentry)
1620  If Not mp Then Go to out_unlock
1623  event++
1624  When Not hlist_empty( & m_list) cycle
1625  mnt = hlist_entry(first, structmount, mnt_mp_list)
1626  If mnt_flags & MNT_UMOUNT Then
1630  Else mount_lock must be held* namespace_sem must be held for write
1632  alled with namespace_lock and vfsmount lock
1633  out_unlock :
1634  unlock_mount_hash()
1635  namespace_unlock()