Lines Matching refs:v2_disk_dqblk

26 #define GETENTRIES(buf) ((struct v2_disk_dqblk *)(((char *)buf)+sizeof(struct v2_disk_dqdbheader)))
108 static void disk2memdqb(struct mem_dqblk *m, struct v2_disk_dqblk *d) in disk2memdqb()
120 static void mem2diskdqb(struct v2_disk_dqblk *d, struct mem_dqblk *m, qid_t id) in mem2diskdqb()
292 struct v2_disk_dqblk *ddquot; in find_free_dqentry()
293 struct v2_disk_dqblk fakedquot; in find_free_dqentry()
324 memset(&fakedquot, 0, sizeof(struct v2_disk_dqblk)); in find_free_dqentry()
326 for (i = 0; i < V2_DQSTRINBLK && memcmp(&fakedquot, ddquot+i, sizeof(struct v2_disk_dqblk)); i++); in find_free_dqentry()
338 …dq_off = (blk<<V2_DQBLKSIZE_BITS)+sizeof(struct v2_disk_dqdbheader)+i*sizeof(struct v2_disk_dqblk); in find_free_dqentry()
416 struct v2_disk_dqblk ddquot; in v2_write_dquot()
428 ret = filp->f_op->write(filp, (char *)&ddquot, sizeof(struct v2_disk_dqblk), &offset); in v2_write_dquot()
430 if (ret != sizeof(struct v2_disk_dqblk)) { in v2_write_dquot()
470 memset(buf+(dquot->dq_off & ((1 << V2_DQBLKSIZE_BITS)-1)), 0, sizeof(struct v2_disk_dqblk)); in free_dqentry()
547 struct v2_disk_dqblk *ddquot = GETENTRIES(buf); in find_block_dqentry()
558 struct v2_disk_dqblk fakedquot; in find_block_dqentry()
560 memset(&fakedquot, 0, sizeof(struct v2_disk_dqblk)); in find_block_dqentry()
562 if (!le32_to_cpu(ddquot[i].dqb_id) && memcmp(&fakedquot, ddquot+i, sizeof(struct v2_disk_dqblk))) in find_block_dqentry()
571 … (blk << V2_DQBLKSIZE_BITS) + sizeof(struct v2_disk_dqdbheader) + i * sizeof(struct v2_disk_dqblk); in find_block_dqentry()
616 struct v2_disk_dqblk ddquot; in v2_read_dquot()
640 …f_op->read(filp, (char *)&ddquot, sizeof(struct v2_disk_dqblk), &offset)) != sizeof(struct v2_disk… in v2_read_dquot()
644 memset(&ddquot, 0, sizeof(struct v2_disk_dqblk)); in v2_read_dquot()