Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vfs_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

Proto:int vfs_get_super(struct fs_context *fc, enum vfs_get_super_keying keying, int (*fill_super)(struct super_block *sb, struct fs_context *fc))

Type:int

Parameter:

TypeParameterName
struct fs_context *fc
enum vfs_get_super_keyingkeying
int (*fill_super
1167  int( * test)(struct super_block * , struct fs_context * )
1172  Case keying == Only one such superblock may exist
1173  Case keying == As above, but reconfigure if it exists
1174  test = test_single_super
1175  Break
1176  Case keying == Superblocks with different s_fs_info keys may exist
1177  test = test_keyed_super
1178  Break
1179  Case keying == Multiple independent superblocks may exist
1180  test = NULL
1181  Break
1182  Default
1183  BUG()
1186  sb = sget_fc - Find or create a superblock*@fc: Filesystem context
1187  If IS_ERR(sb) Then Return PTR_ERR(sb)
1190  If Not s_root Then
1191  err = fill_super(sb, fc)
1192  If err Then Go to error
1195  s_flags |= SB_ACTIVE
1196  root = get a reference to a dentry
1197  Else
1198  root = get a reference to a dentry
1201  If err < 0 Then
1202  dput(root)
1203  root = NULL
1204  Go to error
1209  Return 0
1211  error :
1212  deactivate_locked_super - drop an active reference to superblock*@s: superblock to deactivate* Drops an active reference to superblock, converting it into a temporary* one if there is no other active references left
1213  Return err
Caller
NameDescribe
get_tree_nodev
get_tree_single
get_tree_single_reconf
get_tree_keyed