Lines Matching defs:kqid

68 struct kqid {			/* Type in which we store the quota identifier */
77 extern bool qid_eq(struct kqid left, struct kqid right);
78 extern bool qid_lt(struct kqid left, struct kqid right);
79 extern qid_t from_kqid(struct user_namespace *to, struct kqid qid);
80 extern qid_t from_kqid_munged(struct user_namespace *to, struct kqid qid);
81 extern bool qid_valid(struct kqid qid);
84 * make_kqid - Map a user-namespace, type, qid tuple into a kqid.
90 * kqid, and returns that kqid.
93 * qid tuple an invalid kqid is returned. Callers are expected to
97 static inline struct kqid make_kqid(struct user_namespace *from,
100 struct kqid kqid;
102 kqid.type = type;
105 kqid.uid = make_kuid(from, qid);
108 kqid.gid = make_kgid(from, qid);
111 kqid.projid = make_kprojid(from, qid);
116 return kqid;
120 * make_kqid_invalid - Explicitly make an invalid kqid
123 * Returns an invalid kqid with the specified type.
125 static inline struct kqid make_kqid_invalid(enum quota_type type)
127 struct kqid kqid;
129 kqid.type = type;
132 kqid.uid = INVALID_UID;
135 kqid.gid = INVALID_GID;
138 kqid.projid = INVALID_PROJID;
143 return kqid;
147 * make_kqid_uid - Make a kqid from a kuid
150 static inline struct kqid make_kqid_uid(kuid_t uid)
152 struct kqid kqid;
153 kqid.type = USRQUOTA;
154 kqid.uid = uid;
155 return kqid;
159 * make_kqid_gid - Make a kqid from a kgid
162 static inline struct kqid make_kqid_gid(kgid_t gid)
164 struct kqid kqid;
165 kqid.type = GRPQUOTA;
166 kqid.gid = gid;
167 return kqid;
171 * make_kqid_projid - Make a kqid from a projid
174 static inline struct kqid make_kqid_projid(kprojid_t projid)
176 struct kqid kqid;
177 kqid.type = PRJQUOTA;
178 kqid.projid = projid;
179 return kqid;
187 static inline bool qid_has_mapping(struct user_namespace *ns, struct kqid qid)
305 struct kqid dq_id; /* ID this applies to (uid, gid, projid) */
320 int (*get_next_id)(struct super_block *sb, struct kqid *qid); /* Get next ID with existing structure in the quota file */
339 int (*get_next_id) (struct super_block *sb, struct kqid *qid);
437 int (*get_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *);
438 int (*get_nextdqblk)(struct super_block *, struct kqid *,
440 int (*set_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *);
511 extern void quota_send_warning(struct kqid qid, dev_t dev,
514 static inline void quota_send_warning(struct kqid qid, dev_t dev,