Lines Matching refs:kqid
68 struct kqid { /* Type in which we store the quota identifier */ struct
77 extern bool qid_eq(struct kqid left, struct kqid right); argument
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);
97 static inline struct kqid make_kqid(struct user_namespace *from, in make_kqid()
100 struct kqid kqid; in make_kqid() local
102 kqid.type = type; in make_kqid()
105 kqid.uid = make_kuid(from, qid); in make_kqid()
108 kqid.gid = make_kgid(from, qid); in make_kqid()
111 kqid.projid = make_kprojid(from, qid); in make_kqid()
116 return kqid; in make_kqid()
125 static inline struct kqid make_kqid_invalid(enum quota_type type) in make_kqid_invalid()
127 struct kqid kqid; in make_kqid_invalid() local
129 kqid.type = type; in make_kqid_invalid()
132 kqid.uid = INVALID_UID; in make_kqid_invalid()
135 kqid.gid = INVALID_GID; in make_kqid_invalid()
138 kqid.projid = INVALID_PROJID; in make_kqid_invalid()
143 return kqid; in make_kqid_invalid()
150 static inline struct kqid make_kqid_uid(kuid_t uid) in make_kqid_uid()
152 struct kqid kqid; in make_kqid_uid() local
153 kqid.type = USRQUOTA; in make_kqid_uid()
154 kqid.uid = uid; in make_kqid_uid()
155 return kqid; in make_kqid_uid()
162 static inline struct kqid make_kqid_gid(kgid_t gid) in make_kqid_gid()
164 struct kqid kqid; in make_kqid_gid() local
165 kqid.type = GRPQUOTA; in make_kqid_gid()
166 kqid.gid = gid; in make_kqid_gid()
167 return kqid; in make_kqid_gid()
174 static inline struct kqid make_kqid_projid(kprojid_t projid) in make_kqid_projid()
176 struct kqid kqid; in make_kqid_projid() local
177 kqid.type = PRJQUOTA; in make_kqid_projid()
178 kqid.projid = projid; in make_kqid_projid()
179 return kqid; in make_kqid_projid()
187 static inline bool qid_has_mapping(struct user_namespace *ns, struct kqid qid) in qid_has_mapping()
303 struct kqid dq_id; /* ID this applies to (uid, gid, projid) */
318 …int (*get_next_id)(struct super_block *sb, struct kqid *qid); /* Get next ID with existing structu…
337 int (*get_next_id) (struct super_block *sb, struct kqid *qid);
435 int (*get_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *);
436 int (*get_nextdqblk)(struct super_block *, struct kqid *,
438 int (*set_dqblk)(struct super_block *, struct kqid, struct qc_dqblk *);
509 extern void quota_send_warning(struct kqid qid, dev_t dev,
512 static inline void quota_send_warning(struct kqid qid, dev_t dev, in quota_send_warning()