函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\super.c Create Date:2022-07-29 10:32:23
Last Modify:2022-05-24 06:42:17 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:int reconfigure_super(struct fs_context *fc)

返回类型:int

参数:

类型参数名称
struct fs_context *fc
905  sb等于d_sb
907  bool remount_ro = false
908  force等于sb_flags按位与SB_FORCE
910  如果sb_flags_mask按位与Superblock flags that can be altered by MS_REMOUNT的反则返回:负EINVAL
912  如果frozen不等于SB_UNFROZEN则返回:负EBUSY
915  retval等于security_sb_remount(sb, security)
916  如果retval则返回:retval
919  如果sb_flags_mask按位与Mount read-only
921  如果非sb_flags按位与Mount read-only 的值且bdev_read_only(s_bdev)则返回:负EACCES
925  remount_ro等于sb_flags按位与Mount read-only 且非sb_rdonly(sb)
928  如果remount_ro
929  如果非hlist_empty( & s_pins)则
931  s_pin.c
933  如果非s_root则返回:0
935  如果frozen不等于SB_UNFROZEN则返回:负EBUSY
937  remount_ro等于非sb_rdonly(sb)
940  缩小一个超级块的数据缓存
945  如果remount_ro
946  如果force
947  s_readonly_remount等于1
948  smp_wmb()
949  否则
951  如果retval则返回:retval
956  如果reconfigure
957  retval等于reconfigure(fc)
958  如果retval
959  如果非force则转到: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  如果remount_ros_bdevinvalidate_bdev(s_bdev)
983  返回:0
985  cancel_readonly :
986  s_readonly_remount等于0
987  返回:retval
调用者
名称描述
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.