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:heck 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**

Proto:int propagate_mount_busy(struct mount *mnt, int refcnt)

Type:int

Parameter:

TypeParameterName
struct mount *mnt
intrefcnt
373  parent = mnt_parent
375  If mnt == parent Then Return rn true if the refcount is greater than count
383  If Not list_empty - tests whether a list is empty*@head: the list to test. || rn true if the refcount is greater than count Then Return 1
386  When m cycle
388  count = 1
389  child = d the first mount at @dentry on vfsmount @mnt.* call under rcu_read_lock()
390  If Not child Then Continue
396  topper = find_topper(child)
397  If topper Then count += 1
399  Else if Not list_empty - tests whether a list is empty*@head: the list to test. Then Continue
402  If rn true if the refcount is greater than count Then Return 1
405  Return 0
Caller
NameDescribe
do_umount
mark_mounts_for_expiryprocess a list of expirable mountpoints with the intent of discarding any* mountpoints that aren't in use and haven't been touched since last we came* here
select_submountsRipoff of 'select_parent()'* search the list of submounts for a given mountpoint, and move any* shrinkable submounts to the 'graveyard' list.
may_umountmay_umount - check if a mount point is busy*@mnt: root of mount* This is called to check if a mount point has any* open files, pwds, chroots or sub mounts. If the* mount has sub mounts this will return busy* regardless of whether the sub mounts are busy.