Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mnt_already_visible

Proto:static bool mnt_already_visible(struct mnt_namespace *ns, const struct super_block *sb, int *new_mnt_flags)

Type:bool

Parameter:

TypeParameterName
struct mnt_namespace *ns
const struct super_block *sb
int *new_mnt_flags
3841  new_flags = new_mnt_flags
3843  bool visible = false
3845  lock for reading
3850  If s_type != s_type Then Continue
3856  If root of the mounted tree != s_root Then Continue
3860  mnt_flags = mnt_flags
3863  If sb_rdonly( pointer to superblock ) Then mnt_flags |= MNT_LOCK_READONLY
3869  If mnt_flags & MNT_LOCK_READONLY && Not (new_flags & does the user want this to be r/o? ) Then Continue
3872  If mnt_flags & MNT_LOCK_ATIME && (mnt_flags & MNT_ATIME_MASK) != (new_flags & MNT_ATIME_MASK) Then Continue
3881  inode = Where the name belongs to - NULL is * negative
3883  If Not (mnt_flags & MNT_LOCKED) Then Continue
3886  If Not is_empty_dir_inode(inode) Then Go to next
3891  new_mnt_flags |= mnt_flags & (MNT_LOCK_READONLY | MNT_LOCK_ATIME)
3892  visible = true
3893  Go to found
3894  :
3896  found :
3897  lease a read lock
3898  Return visible
Caller
NameDescribe
mount_too_revealing