Lines Matching refs:v2_disk_dqblk
26 #define GETENTRIES(buf) ((struct v2_disk_dqblk *)(((char *)buf)+sizeof(struct v2_disk_dqdbheader)))
97 static void disk2memdqb(struct mem_dqblk *m, struct v2_disk_dqblk *d)
109 static void mem2diskdqb(struct v2_disk_dqblk *d, struct mem_dqblk *m, qid_t id)
273 struct v2_disk_dqblk *ddquot;
274 struct v2_disk_dqblk fakedquot;
307 memset(&fakedquot, 0, sizeof(struct v2_disk_dqblk));
309 for (i = 0; i < V2_DQSTRINBLK && memcmp(&fakedquot, ddquot+i, sizeof(struct v2_disk_dqblk)); i++);
321 dquot->dq_off = (blk<<V2_DQBLKSIZE_BITS)+sizeof(struct v2_disk_dqdbheader)+i*sizeof(struct v2_disk_dqblk);
395 struct v2_disk_dqblk ddquot, empty;
408 memset(&empty, 0, sizeof(struct v2_disk_dqblk));
409 if (!memcmp(&empty, &ddquot, sizeof(struct v2_disk_dqblk)))
413 (char *)&ddquot, sizeof(struct v2_disk_dqblk), dquot->dq_off);
414 if (ret != sizeof(struct v2_disk_dqblk)) {
459 sizeof(struct v2_disk_dqblk));
538 struct v2_disk_dqblk *ddquot = GETENTRIES(buf);
550 struct v2_disk_dqblk fakedquot;
552 memset(&fakedquot, 0, sizeof(struct v2_disk_dqblk));
555 memcmp(&fakedquot, ddquot+i, sizeof(struct v2_disk_dqblk)))
566 v2_disk_dqdbheader) + i * sizeof(struct v2_disk_dqblk);
608 struct v2_disk_dqblk ddquot, empty;
631 (char *)&ddquot, sizeof(struct v2_disk_dqblk), offset))
632 != sizeof(struct v2_disk_dqblk)) {
637 memset(&ddquot, 0, sizeof(struct v2_disk_dqblk));
642 memset(&empty, 0, sizeof(struct v2_disk_dqblk));
644 if (!memcmp(&empty, &ddquot, sizeof(struct v2_disk_dqblk)))