函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\super.c Create Date:2022-07-29 10:32:21
Last Modify:2022-05-24 06:42:17 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:bool trylock_super(struct super_block *sb)

返回类型:bool

参数:

类型参数名称
struct super_block *sb
418  如果rylock for reading -- returns 1 if successful, 0 if contention
419  如果非hlist_unhashed( & s_instances)且s_roots_flags按位与SB_BORN则返回:true
422  lease a read lock
425  返回:false
调用者
名称描述
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