Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-28 20:32:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:hashfn

Proto:static inline unsigned int hashfn(const struct super_block *sb, struct kqid qid)

Type:unsigned int

Parameter:

TypeParameterName
const struct super_block *sb
struct kqidqid
264  id = from_kqid( & userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?, qid)
265  type = USRQUOTA (uid) or GRPQUOTA (gid) or PRJQUOTA (projid)
268  tmp = ( sb >> L1 cache line size ^ id) * (MAXQUOTAS - type)
269  Return tmp + (tmp >> dq_hash_bits) & dq_hash_mask
Caller
NameDescribe
insert_dquot_hashFollowing list functions expect dq_list_lock to be held
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