Lines Matching refs:dquot
27 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot);
28 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp);
29 static int v2r0_is_id(void *dp, struct dquot *dquot);
30 static void v2r1_mem2diskdqb(void *dp, struct dquot *dquot);
31 static void v2r1_disk2memdqb(struct dquot *dquot, void *dp);
32 static int v2r1_is_id(void *dp, struct dquot *dquot);
198 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp) in v2r0_disk2memdqb() argument
201 struct mem_dqblk *m = &dquot->dq_dqb; in v2r0_disk2memdqb()
218 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot) in v2r0_mem2diskdqb() argument
221 struct mem_dqblk *m = &dquot->dq_dqb; in v2r0_mem2diskdqb()
223 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in v2r0_mem2diskdqb()
233 d->dqb_id = cpu_to_le32(from_kqid(&init_user_ns, dquot->dq_id)); in v2r0_mem2diskdqb()
238 static int v2r0_is_id(void *dp, struct dquot *dquot) in v2r0_is_id() argument
242 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in v2r0_is_id()
246 return qid_eq(make_kqid(&init_user_ns, dquot->dq_id.type, in v2r0_is_id()
248 dquot->dq_id); in v2r0_is_id()
251 static void v2r1_disk2memdqb(struct dquot *dquot, void *dp) in v2r1_disk2memdqb() argument
254 struct mem_dqblk *m = &dquot->dq_dqb; in v2r1_disk2memdqb()
271 static void v2r1_mem2diskdqb(void *dp, struct dquot *dquot) in v2r1_mem2diskdqb() argument
274 struct mem_dqblk *m = &dquot->dq_dqb; in v2r1_mem2diskdqb()
276 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in v2r1_mem2diskdqb()
286 d->dqb_id = cpu_to_le32(from_kqid(&init_user_ns, dquot->dq_id)); in v2r1_mem2diskdqb()
291 static int v2r1_is_id(void *dp, struct dquot *dquot) in v2r1_is_id() argument
295 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in v2r1_is_id()
299 return qid_eq(make_kqid(&init_user_ns, dquot->dq_id.type, in v2r1_is_id()
301 dquot->dq_id); in v2r1_is_id()
304 static int v2_read_dquot(struct dquot *dquot) in v2_read_dquot() argument
306 struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); in v2_read_dquot()
311 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv, in v2_read_dquot()
312 dquot); in v2_read_dquot()
317 static int v2_write_dquot(struct dquot *dquot) in v2_write_dquot() argument
319 struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); in v2_write_dquot()
329 if (!dquot->dq_off) { in v2_write_dquot()
336 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv, in v2_write_dquot()
337 dquot); in v2_write_dquot()
345 static int v2_release_dquot(struct dquot *dquot) in v2_release_dquot() argument
347 struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); in v2_release_dquot()
351 ret = qtree_release_dquot(sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv, dquot); in v2_release_dquot()