函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-29 11:08:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:find_dquot

函数原型:static struct dquot *find_dquot(unsigned int hashent, struct super_block *sb, struct kqid qid)

返回类型:struct dquot

参数:

类型参数名称
unsigned inthashent
struct super_block *sb
struct kqidqid
294  dquot等于hlist_entry(node, structdquot, dq_hash)
295  如果 superblock this applies to 恒等于sbqid_eq( ID this applies to (uid, gid, projid) , qid)则返回:dquot
298  返回:NULL
调用者
名称描述
dqgetGet reference to dquot* Locking is slightly tricky here. We are guarded from parallel quotaoff()* destroying our dquot by:* a) checking for quota flags under dq_list_lock and* b) getting a reference to dquot before we release dq_list_lock