• Home
  • Raw
  • Download

Lines Matching full:depth

26 static int __get_index(struct qtree_mem_dqinfo *info, qid_t id, int depth)  in __get_index()  argument
30 depth = info->dqi_qtree_depth - depth - 1; in __get_index()
31 while (depth--) in __get_index()
36 static int get_index(struct qtree_mem_dqinfo *info, struct kqid qid, int depth) in get_index() argument
40 return __get_index(info, id, depth); in get_index()
299 uint *treeblk, int depth) in do_insert_tree() argument
324 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in do_insert_tree()
327 if (depth == info->dqi_qtree_depth - 1) { in do_insert_tree()
333 dquot->dq_id, depth)])); in do_insert_tree()
340 ret = do_insert_tree(info, dquot, &newblk, depth+1); in do_insert_tree()
343 ref[get_index(info, dquot->dq_id, depth)] = in do_insert_tree()
476 uint *blk, int depth) in remove_tree() argument
491 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in remove_tree()
499 if (depth == info->dqi_qtree_depth - 1) { in remove_tree()
503 ret = remove_tree(info, dquot, &newblk, depth+1); in remove_tree()
507 ref[get_index(info, dquot->dq_id, depth)] = cpu_to_le32(0); in remove_tree()
580 struct dquot *dquot, uint blk, int depth) in find_tree_dqentry() argument
595 blk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in find_tree_dqentry()
605 if (depth < info->dqi_qtree_depth - 1) in find_tree_dqentry()
606 ret = find_tree_dqentry(info, dquot, blk, depth+1); in find_tree_dqentry()
695 unsigned int blk, int depth) in find_next_id() argument
707 for (i = depth; i < info->dqi_qtree_depth - 1; i++) in find_next_id()
716 for (i = __get_index(info, *id, depth); i < epb; i++) { in find_next_id()
721 if (depth == info->dqi_qtree_depth - 1) { in find_next_id()
725 ret = find_next_id(info, id, le32_to_cpu(ref[i]), depth + 1); in find_next_id()