Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Free a superblock that has never been seen by anyone

Proto:static void destroy_unused_super(struct super_block *s)

Type:void

Parameter:

TypeParameterName
struct super_block *s
178  If Not s Then Return
180  lease a write lock
181  list_lru_destroy( & s_dentry_lru)
182  list_lru_destroy( & s_inode_lru)
183  security_sb_free(s)
184  put_user_ns(s_user_ns)
185  kfree(s_subtype)
186  free_prealloced_shrinker( & s_shrink)
188  destroy_super_work( & destroy_work)
Caller
NameDescribe
alloc_superalloc_super - create new superblock*@type: filesystem type superblock should belong to*@flags: the mount flags*@user_ns: User namespace for the super_block* Allocates and initializes a new &struct super_block. alloc_super()
sget_fcsget_fc - Find or create a superblock*@fc: Filesystem context
sgetfind or create a superblock