Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\quota.h Create Date:2022-07-28 05:42:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:qid_has_mapping - Report if a qid maps into a user namespace.*@ns: The user namespace to see if a value maps into.*@qid: The kernel internal quota identifier to test.

Proto:static inline bool qid_has_mapping(struct user_namespace *ns, struct kqid qid)

Type:bool

Parameter:

TypeParameterName
struct user_namespace *ns
struct kqidqid
189  Return m_kqid - Create a qid from a kqid user-namespace pair.*@targ: The user namespace we want a qid in.*@kqid: The kernel internal quota identifier to start with.* Map @kqid into the user-namespace specified by @targ and* return the resulting qid. != (qid_t) - 1
Caller
NameDescribe
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
quota_getquota
quota_getnextquotaReturn quota for next active quota >= this id, if any exists,* otherwise return -ENOENT via ->get_nextdqblk
quota_setquota
quota_setxquota
quota_getxquota
quota_getnextxquotaReturn quota for next active quota >= this id, if any exists,* otherwise return -ENOENT via ->get_nextdqblk.