Home
last modified time | relevance | path

Searched refs:dquot (Results 1 – 14 of 14) sorted by relevance

/external/e2fsprogs/lib/support/
Dquotaio_tree.c195 struct dquot *dquot, int *err) in find_free_dqentry() argument
244 dquot->dq_dqb.u.v2_mdqb.dqb_off = in find_free_dqentry()
252 static int do_insert_tree(struct quota_handle *h, struct dquot *dquot, in do_insert_tree() argument
278 newblk = ext2fs_le32_to_cpu(ref[get_index(dquot->dq_id, depth)]); in do_insert_tree()
285 ref[get_index(dquot->dq_id, depth)]); in do_insert_tree()
286 newblk = find_free_dqentry(h, dquot, &ret); in do_insert_tree()
288 ret = do_insert_tree(h, dquot, &newblk, depth + 1); in do_insert_tree()
292 ref[get_index(dquot->dq_id, depth)] = in do_insert_tree()
305 static void dq_insert_tree(struct quota_handle *h, struct dquot *dquot) in dq_insert_tree() argument
309 if (do_insert_tree(h, dquot, &tmp, 0) < 0) in dq_insert_tree()
[all …]
Dquotaio_tree.h32 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);
Dquotaio_v2.c25 static struct dquot *v2_read_dquot(struct quota_handle *h, qid_t id);
26 static int v2_commit_dquot(struct dquot *dquot);
28 int (*process_dquot) (struct dquot *dquot,
47 static void v2r1_disk2memdqblk(struct dquot *dquot, void *dp) in v2r1_disk2memdqblk() argument
49 struct util_dqblk *m = &dquot->dq_dqb; in v2r1_disk2memdqblk()
52 dquot->dq_id = ext2fs_le32_to_cpu(d->dqb_id); in v2r1_disk2memdqblk()
71 static void v2r1_mem2diskdqblk(void *dp, struct dquot *dquot) in v2r1_mem2diskdqblk() argument
73 struct util_dqblk *m = &dquot->dq_dqb; in v2r1_mem2diskdqblk()
84 d->dqb_id = ext2fs_cpu_to_le32(dquot->dq_id); in v2r1_mem2diskdqblk()
85 if (qtree_entry_unused(&dquot->dq_h->qh_info.u.v2_mdqi.dqi_qtree, dp)) in v2r1_mem2diskdqblk()
[all …]
Dmkquota.c49 static void print_dquot(const char *desc, struct dquot *dq) in print_dquot()
63 struct dquot *dq EXT2FS_ATTR((unused))) in print_dquot()
150 struct dquot *dq; in write_dquots()
362 static struct dquot *get_dq(dict_t *dict, __u32 key) in get_dq()
364 struct dquot *dq; in get_dq()
371 if (ext2fs_get_mem(sizeof(struct dquot), &dq)) { in get_dq()
375 memset(dq, 0, sizeof(struct dquot)); in get_dq()
390 struct dquot *dq; in quota_data_add()
419 struct dquot *dq; in quota_data_sub()
446 struct dquot *dq; in quota_data_inodes()
[all …]
Dquotaio.h149 struct dquot { struct
150 struct dquot *dq_next; /* Pointer to next dquot in the list */ argument
172 struct dquot *(*read_dquot) (struct quota_handle *h, qid_t id);
174 int (*commit_dquot) (struct dquot *dquot);
177 int (*process_dquot) (struct dquot *dquot,
202 struct dquot *get_empty_dquot(void);
209 void update_grace_times(struct dquot *q);
Dquotaio.c84 void update_grace_times(struct dquot *q) in update_grace_times()
435 struct dquot *get_empty_dquot(void) in get_empty_dquot()
437 struct dquot *dquot; in get_empty_dquot() local
439 if (ext2fs_get_memzero(sizeof(struct dquot), &dquot)) { in get_empty_dquot()
444 dquot->dq_id = -1; in get_empty_dquot()
445 return dquot; in get_empty_dquot()
/external/f2fs-tools/fsck/
Dquotaio_tree.c195 struct dquot *dquot, int *err) in find_free_dqentry() argument
244 dquot->dq_dqb.u.v2_mdqb.dqb_off = in find_free_dqentry()
252 static int do_insert_tree(struct quota_handle *h, struct dquot *dquot, in do_insert_tree() argument
278 newblk = le32_to_cpu(ref[get_index(dquot->dq_id, depth)]); in do_insert_tree()
285 ref[get_index(dquot->dq_id, depth)]); in do_insert_tree()
286 newblk = find_free_dqentry(h, dquot, &ret); in do_insert_tree()
288 ret = do_insert_tree(h, dquot, &newblk, depth + 1); in do_insert_tree()
292 ref[get_index(dquot->dq_id, depth)] = in do_insert_tree()
307 static int dq_insert_tree(struct quota_handle *h, struct dquot *dquot) in dq_insert_tree() argument
312 err = do_insert_tree(h, dquot, &tmp, 0); in dq_insert_tree()
[all …]
Dquotaio_tree.h38 struct dquot;
44 void (*mem2disk_dqblk)(void *disk, struct dquot *dquot);
46 void (*disk2mem_dqblk)(struct dquot *dquot, void *disk);
48 int (*is_id)(void *disk, struct dquot *dquot);
61 int qtree_write_dquot(struct dquot *dquot);
62 struct dquot *qtree_read_dquot(struct quota_handle *h, qid_t id);
63 void qtree_delete_dquot(struct dquot *dquot);
66 int (*process_dquot) (struct dquot *, void *), void *data);
Dquotaio_v2.c26 static struct dquot *v2_read_dquot(struct quota_handle *h, qid_t id);
27 static int v2_commit_dquot(struct dquot *dquot);
29 int (*process_dquot) (struct dquot *dquot,
48 static void v2r1_disk2memdqblk(struct dquot *dquot, void *dp) in v2r1_disk2memdqblk() argument
50 struct util_dqblk *m = &dquot->dq_dqb; in v2r1_disk2memdqblk()
53 dquot->dq_id = le32_to_cpu(d->dqb_id); in v2r1_disk2memdqblk()
72 static void v2r1_mem2diskdqblk(void *dp, struct dquot *dquot) in v2r1_mem2diskdqblk() argument
74 struct util_dqblk *m = &dquot->dq_dqb; in v2r1_mem2diskdqblk()
85 d->dqb_id = cpu_to_le32(dquot->dq_id); in v2r1_mem2diskdqblk()
86 if (qtree_entry_unused(&dquot->dq_h->qh_info.u.v2_mdqi.dqi_qtree, dp)) in v2r1_mem2diskdqblk()
[all …]
Dmkquota.c29 static void print_dquot(const char *desc, struct dquot *dq) in print_dquot()
48 struct dquot *dq; in write_dquots()
201 static struct dquot *get_dq(dict_t *dict, __u32 key) in get_dq()
203 struct dquot *dq; in get_dq()
210 if (quota_get_mem(sizeof(struct dquot), &dq)) { in get_dq()
214 memset(dq, 0, sizeof(struct dquot)); in get_dq()
226 struct dquot *dq; in quota_data_add()
248 struct dquot *dq; in quota_data_sub()
269 struct dquot *dq; in quota_data_inodes()
314 static int scan_dquots_callback(struct dquot *dquot, void *cb_data) in scan_dquots_callback() argument
[all …]
Dquotaio.h142 struct dquot { struct
143 struct dquot *dq_next; /* Pointer to next dquot in the list */ argument
165 struct dquot *(*read_dquot) (struct quota_handle *h, qid_t id);
167 int (*commit_dquot) (struct dquot *dquot);
170 int (*process_dquot) (struct dquot *dquot,
205 struct dquot *get_empty_dquot(void);
207 void update_grace_times(struct dquot *q);
Dquotaio.c49 void update_grace_times(struct dquot *q) in update_grace_times()
212 struct dquot *get_empty_dquot(void) in get_empty_dquot()
214 struct dquot *dquot; in get_empty_dquot() local
216 if (quota_get_memzero(sizeof(struct dquot), &dquot)) { in get_empty_dquot()
221 dquot->dq_id = -1; in get_empty_dquot()
222 return dquot; in get_empty_dquot()
/external/e2fsprogs/debugfs/
Dquota.c92 static int list_quota_callback(struct dquot *dq, in list_quota_callback()
140 struct dquot *dq; in do_get_quota()
/external/u-boot/fs/ubifs/
Dubifs.h232 struct dquot *i_dquot[MAXQUOTAS];