Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:may_umount_tree - check if a mount tree is busy*@mnt: root of mount tree* This is called to check if a tree of mounts has any* open files, pwds, chroots or sub mounts that are* busy.

Proto:int may_umount_tree(struct vfsmount *m)

Type:int

Parameter:

TypeParameterName
struct vfsmount *m
1309  mnt = real_mount(m)
1310  actual_refs = 0
1311  minimum_refs = 0
1313  BUG_ON(!m)
1316  lock_mount_hash()
1317  When p cycle
1318  actual_refs += vfsmount lock must be held for write
1319  minimum_refs += 2
1321  unlock_mount_hash()
1323  If actual_refs > minimum_refs Then Return 0
1326  Return 1