Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mnt_make_readonly

Proto:static int mnt_make_readonly(struct mount *mnt)

Type:int

Parameter:

TypeParameterName
struct mount *mnt
464  ret = 0
466  lock_mount_hash()
467  mnt_flags |= MNT_WRITE_HOLD
472  smp_mb()
490  If mnt_get_writers(mnt) > 0 Then ret = -EBUSY
492  Else mnt_flags |= does the user want this to be r/o?
498  smp_wmb()
499  mnt_flags &= ~MNT_WRITE_HOLD
500  unlock_mount_hash()
501  Return ret
Caller
NameDescribe
change_mount_ro_state