Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__get_super

Proto:static struct super_block *__get_super(struct block_device *bdev, bool excl)

Type:struct super_block

Parameter:

TypeParameterName
struct block_device *bdev
boolexcl
747  If Not bdev Then Return NULL
750  spin_lock( & sb_lock)
751  rescan :
753  If hlist_unhashed( & s_instances) Then Continue
755  If s_bdev == bdev Then
756  s_count++
757  spin_unlock( & sb_lock)
758  If Not excl Then lock for reading
760  Else lock for writing
763  If s_root && s_flags & SB_BORN Then Return sb
765  If Not excl Then lease a read lock
767  Else lease a write lock
770  spin_lock( & sb_lock)
771  Drop a superblock's refcount. The caller must hold sb_lock.
772  Go to rescan
775  spin_unlock( & sb_lock)
776  Return NULL
Caller
NameDescribe
get_superget the superblock of a device
__get_super_thawed