Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Handle reconfiguration of the mountpoint only without alteration of the* superblock it refers to. This is triggered by specifying MS_REMOUNT|MS_BIND* to mount(2).

Proto:static int do_reconfigure_mnt(struct path *path, unsigned int mnt_flags)

Type:int

Parameter:

TypeParameterName
struct path *path
unsigned intmnt_flags
2498  sb = mnt_sb
2499  mnt = real_mount(mnt)
2502  If Not check_mnt(mnt) Then Return -EINVAL
2505  If dentry != root of the mounted tree Then Return -EINVAL
2508  If Not Don't allow locked mount flags to be cleared.* No locks need to be held here while testing the various MNT_LOCK* flags because those flags can never be cleared once they are set. Then Return -EPERM
2511  lock for writing
2512  ret = change_mount_ro_state(mnt, mnt_flags)
2513  If ret == 0 Then Update the user-settable attributes on a mount. The caller must hold* sb->s_umount for writing.
2515  lease a write lock
2517  mnt_warn_timestamp_expiry(path, & mnt)
2519  Return ret
Caller
NameDescribe
do_mountFlags is a 32-bit value that allows up to 31 non-fs dependent flags to* be given to the mount() call (ie: read-only, no-dev, no-suid etc)