Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\super.c Create Date:2022-07-28 20:02:27
Last Modify:2022-05-24 06:42:17 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:gure_super - asks filesystem to change superblock parameters*@fc: The superblock and configuration* Alters the configuration parameters of a live superblock.

Proto:int reconfigure_super(struct fs_context *fc)

Type:int

Parameter:

TypeParameterName
struct fs_context *fc
905  sb = d_sb
907  bool remount_ro = false
908  force = sb_flags & SB_FORCE
910  If sb_flags_mask & ~Superblock flags that can be altered by MS_REMOUNT Then Return -EINVAL
912  If frozen != SB_UNFROZEN Then Return -EBUSY
915  retval = security_sb_remount(sb, security)
916  If retval Then Return retval
919  If sb_flags_mask & Mount read-only Then
921  If Not (sb_flags & Mount read-only ) && bdev_read_only(s_bdev) Then Return -EACCES
925  remount_ro = sb_flags & Mount read-only && Not sb_rdonly(sb)
928  If remount_ro Then
929  If Not hlist_empty( & s_pins) Then
931  s_pin.c
933  If Not s_root Then Return 0
935  If frozen != SB_UNFROZEN Then Return -EBUSY
937  remount_ro = Not sb_rdonly(sb)
940  shrink dcache for a superblock
945  If remount_ro Then
946  If force Then
947  s_readonly_remount = 1
948  smp_wmb()
949  Else
951  If retval Then Return retval
956  If reconfigure Then
957  retval = reconfigure(fc)
958  If retval Then
959  If Not force Then Go to cancel_readonly
962  WARN(1, "forced remount of a %s fs returned %i\n", name, retval)
967  WRITE_ONCE(s_flags, ((s_flags & ~sb_flags_mask) | (sb_flags & sb_flags_mask)))
970  smp_wmb()
971  s_readonly_remount = 0
981  If remount_ro && s_bdev Then invalidate_bdev(s_bdev)
983  Return 0
985  cancel_readonly :
986  s_readonly_remount = 0
987  Return retval
Caller
NameDescribe
do_emergency_remount_callback
vfs_get_supervfs_get_super - Get a superblock with a search key set in s_fs_info.*@fc: The filesystem context holding the parameters*@keying: How to distinguish superblocks*@fill_super: Helper to initialise a new superblock
reconfigure_single
do_umount_root
do_remounthange filesystem flags. dir should be a physical root of filesystem.* If you've mounted a non-root directory somewhere and want to do remount* on it - tough luck.
vfs_fsconfig_lockedCheck the state and apply the configuration. Note that this function is* allowed to 'steal' the value by setting param->xxx to NULL before returning.