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:sb_prepare_remount_readonly

Proto:int sb_prepare_remount_readonly(struct super_block *sb)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
515  err = 0
518  If atomic_long_read( & s_remove_count) Then Return -EBUSY
521  lock_mount_hash()
523  If Not (mnt_flags & does the user want this to be r/o? ) Then
524  mnt_flags |= MNT_WRITE_HOLD
525  smp_mb()
526  If mnt_get_writers(mnt) > 0 Then
527  err = -EBUSY
528  Break
532  If Not err && atomic_long_read( & s_remove_count) Then err = -EBUSY
535  If Not err Then
536  s_readonly_remount = 1
537  smp_wmb()
540  If mnt_flags & MNT_WRITE_HOLD Then mnt_flags &= ~MNT_WRITE_HOLD
543  unlock_mount_hash()
545  Return err