Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vfs_get_tree - Get the mountable root*@fc: The superblock configuration context.* The filesystem is invoked to get or create a superblock which can then later* be used for mounting. The filesystem places a pointer to the root to be

Proto:int vfs_get_tree(struct fs_context *fc)

Type:int

Parameter:

TypeParameterName
struct fs_context *fc
1541  If root Then Return -EBUSY
1547  error = get_tree(fc)
1548  If error < 0 Then Return error
1551  If Not root Then
1552  pr_err("Filesystem %s get_tree() didn't set fc->root\n", name)
1557  BUG()
1560  sb = d_sb
1561  WARN_ON(!s_bdi)
1569  smp_wmb()
1570  s_flags |= SB_BORN
1572  error = security_sb_set_mnt_opts(sb, security, 0, NULL)
1573  If Value for the false possibility is greater at compile time(error) Then
1574  fc_drop_locked(fc)
1575  Return error
1584  WARN((s_maxbytes < 0), "%s set sb->s_maxbytes to negative value (%lld)\n", name, s_maxbytes)
1587  Return 0
Caller
NameDescribe
fc_mount
do_new_mountreate a new mount for userspace and request it to be added into the* namespace's tree
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.