Lines Matching defs:depth
51 static int get_index(qid_t id, int depth)
53 return (id >> ((QT_TREEDEPTH - depth - 1) * 8)) & 0xff;
252 unsigned int * treeblk, int depth)
260 log_debug("inserting in tree: treeblk=%u, depth=%d", *treeblk, depth);
277 newblk = le32_to_cpu(ref[get_index(dquot->dq_id, depth)]);
280 if (depth == QT_TREEDEPTH - 1) {
284 ref[get_index(dquot->dq_id, depth)]);
287 ret = do_insert_tree(h, dquot, &newblk, depth + 1);
291 ref[get_index(dquot->dq_id, depth)] =
406 unsigned int * blk, int depth)
416 newblk = le32_to_cpu(ref[get_index(dquot->dq_id, depth)]);
417 if (depth == QT_TREEDEPTH - 1) {
421 remove_tree(h, dquot, &newblk, depth + 1);
427 ref[get_index(dquot->dq_id, depth)] = cpu_to_le32(0);
482 unsigned int blk, int depth)
493 blk = le32_to_cpu(ref[get_index(dquot->dq_id, depth)]);
496 if (depth < QT_TREEDEPTH - 1)
497 ret = find_tree_dqentry(h, dquot, blk, depth + 1);
605 static int report_tree(struct dquot *dquot, unsigned int blk, int depth,
626 if (depth == QT_TREEDEPTH - 1) {
635 if (report_tree(dquot, blk, depth + 1, bitmap, entries,