函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\pnode.c Create Date:2022-07-29 10:41:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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**

函数原型:int propagate_mount_busy(struct mount *mnt, int refcnt)

返回类型:int

参数:

类型参数名称
struct mount *mnt
intrefcnt
373  parent等于mnt_parent
375  如果mnt恒等于parent则返回:rn true if the refcount is greater than count
383  如果非链表为空rn true if the refcount is greater than count则返回:1
386 m循环
388  count等于1
389  child等于d the first mount at @dentry on vfsmount @mnt.* call under rcu_read_lock()
390  如果非child则继续下一循环
396  topper等于find_topper(child)
397  如果toppercount加等于1
399  否则如果非链表为空则继续下一循环
402  如果rn true if the refcount is greater than count则返回:1
405  返回:0
调用者
名称描述
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.