Searched refs:dquot (Results 1 – 6 of 6) sorted by relevance
/external/e2fsprogs/lib/quota/ |
D | quotaio_tree.c | 190 static uint find_free_dqentry(struct quota_handle *h, struct dquot *dquot, in find_free_dqentry() argument 240 dquot->dq_dqb.u.v2_mdqb.dqb_off = in find_free_dqentry() 248 static int do_insert_tree(struct quota_handle *h, struct dquot *dquot, in do_insert_tree() argument 274 newblk = ext2fs_le32_to_cpu(ref[get_index(dquot->dq_id, depth)]); in do_insert_tree() 281 ref[get_index(dquot->dq_id, depth)]); in do_insert_tree() 282 newblk = find_free_dqentry(h, dquot, &ret); in do_insert_tree() 284 ret = do_insert_tree(h, dquot, &newblk, depth + 1); in do_insert_tree() 288 ref[get_index(dquot->dq_id, depth)] = in do_insert_tree() 301 static void dq_insert_tree(struct quota_handle *h, struct dquot *dquot) in dq_insert_tree() argument 305 if (do_insert_tree(h, dquot, &tmp, 0) < 0) in dq_insert_tree() [all …]
|
D | quotaio_tree.h | 32 struct dquot; 38 void (*mem2disk_dqblk)(void *disk, struct dquot *dquot); 40 void (*disk2mem_dqblk)(struct dquot *dquot, void *disk); 42 int (*is_id)(void *disk, struct dquot *dquot); 55 void qtree_write_dquot(struct dquot *dquot); 56 struct dquot *qtree_read_dquot(struct quota_handle *h, qid_t id); 57 void qtree_delete_dquot(struct dquot *dquot); 60 int (*process_dquot) (struct dquot *, void *), void *data);
|
D | quotaio_v2.c | 24 static struct dquot *v2_read_dquot(struct quota_handle *h, qid_t id); 25 static int v2_commit_dquot(struct dquot *dquot); 27 int (*process_dquot) (struct dquot *dquot, 46 static void v2r1_disk2memdqblk(struct dquot *dquot, void *dp) in v2r1_disk2memdqblk() argument 48 struct util_dqblk *m = &dquot->dq_dqb; in v2r1_disk2memdqblk() 51 dquot->dq_id = ext2fs_le32_to_cpu(d->dqb_id); in v2r1_disk2memdqblk() 70 static void v2r1_mem2diskdqblk(void *dp, struct dquot *dquot) in v2r1_mem2diskdqblk() argument 72 struct util_dqblk *m = &dquot->dq_dqb; in v2r1_mem2diskdqblk() 83 d->dqb_id = ext2fs_cpu_to_le32(dquot->dq_id); in v2r1_mem2diskdqblk() 84 if (qtree_entry_unused(&dquot->dq_h->qh_info.u.v2_mdqi.dqi_qtree, dp)) in v2r1_mem2diskdqblk() [all …]
|
D | quotaio.h | 99 struct dquot { struct 100 struct dquot *dq_next; /* Pointer to next dquot in the list */ argument 120 struct dquot *(*read_dquot) (struct quota_handle *h, qid_t id); 122 int (*commit_dquot) (struct dquot *dquot); 125 int (*process_dquot) (struct dquot *dquot, 149 struct dquot *get_empty_dquot(void); 155 void update_grace_times(struct dquot *q);
|
D | mkquota.c | 109 struct dquot *dq; in write_dquots() 267 static struct dquot *get_dq(dict_t *dict, __u32 key) in get_dq() 269 struct dquot *dq; in get_dq() 276 if (ext2fs_get_mem(sizeof(struct dquot), &dq)) { in get_dq() 280 memset(dq, 0, sizeof(struct dquot)); in get_dq() 294 struct dquot *dq; in quota_data_add() 320 struct dquot *dq; in quota_data_sub() 345 struct dquot *dq; in quota_data_inodes() 413 static int scan_dquots_callback(struct dquot *dquot, void *cb_data) in scan_dquots_callback() argument 417 struct dquot *dq; in scan_dquots_callback() [all …]
|
D | quotaio.c | 76 void update_grace_times(struct dquot *q) in update_grace_times() 370 struct dquot *get_empty_dquot(void) in get_empty_dquot() 372 struct dquot *dquot; in get_empty_dquot() local 374 if (ext2fs_get_memzero(sizeof(struct dquot), &dquot)) { in get_empty_dquot() 379 dquot->dq_id = -1; in get_empty_dquot() 380 return dquot; in get_empty_dquot()
|