Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rylock_super - try to grab ->s_umount shared*@sb: reference we are trying to grab* Try to prevent fs shutdown. This is used in places where we* cannot take an active reference but we need to ensure that the

Proto:bool trylock_super(struct super_block *sb)

Type:bool

Parameter:

TypeParameterName
struct super_block *sb
418  If rylock for reading -- returns 1 if successful, 0 if contention Then
419  If Not hlist_unhashed( & s_instances) && s_root && s_flags & SB_BORN Then Return true
422  lease a read lock
425  Return false
Caller
NameDescribe
super_cache_scanOne thing we have to be careful of with a per-sb shrinker is that we don't* drop the last active reference to the superblock from within the shrinker.* If that happens we could trigger unregistering the shrinker from within the
__writeback_inodes_wb