Home
last modified time | relevance | path

Searched refs:child_cnt (Results 1 – 9 of 9) sorted by relevance

/fs/ubifs/
Dtnc_misc.c57 while (znode->parent != zr && iip >= znode->parent->child_cnt) { in ubifs_tnc_levelorder_next()
63 iip >= znode->parent->child_cnt)) { in ubifs_tnc_levelorder_next()
85 iip = znode->parent->child_cnt; in ubifs_tnc_levelorder_next()
129 int beg = 0, end = znode->child_cnt, mid; in ubifs_search_zbranch()
151 ubifs_assert(c, *n >= -1 && *n < znode->child_cnt); in ubifs_search_zbranch()
156 if (*n + 1 < znode->child_cnt) in ubifs_search_zbranch()
230 for (n = 0; n < zn->child_cnt; n++) { in ubifs_destroy_tnc_subtree()
291 znode->child_cnt = le16_to_cpu(idx->child_cnt); in read_znode()
295 lnum, offs, znode->level, znode->child_cnt); in read_znode()
297 if (znode->child_cnt > c->fanout || znode->level > UBIFS_MAX_LEVELS) { in read_znode()
[all …]
Dtnc_commit.c34 idx->child_cnt = cpu_to_le16(znode->child_cnt); in make_idx_node()
36 for (i = 0; i < znode->child_cnt; i++) { in make_idx_node()
121 len = ubifs_idx_node_sz(c, c->enext->child_cnt); in fill_gap()
448 next_len = ubifs_idx_node_sz(c, cnext->child_cnt); in layout_in_empty_space()
455 len = ubifs_idx_node_sz(c, znode->child_cnt); in layout_in_empty_space()
507 next_len = ubifs_idx_node_sz(c, cnext->child_cnt); in layout_in_empty_space()
599 for (i = 0; i < znode->child_cnt; i++) { in find_first_dirty()
627 for (; n < znode->child_cnt; n++) { in find_next_dirty()
848 next_len = ubifs_idx_node_sz(c, cnext->child_cnt); in write_index()
867 idx->child_cnt = cpu_to_le16(znode->child_cnt); in write_index()
[all …]
Dtnc.c243 const int n = new_zn->child_cnt; in replace_znode()
645 if (nn < znode->child_cnt) { in tnc_next()
657 if (nn < znode->child_cnt) { in tnc_next()
706 nn = znode->child_cnt - 1; in tnc_prev()
711 nn = znode->child_cnt - 1; in tnc_prev()
789 if (*n == (*zn)->child_cnt - 1) { in resolve_collision()
963 if (*n == (*zn)->child_cnt - 1) { in fallible_resolve_collision()
1167 ubifs_assert(c, path[p - 1] < zp->child_cnt); in dirty_cow_bottom_up()
1177 ubifs_assert(c, path[p - 1] < znode->child_cnt); in dirty_cow_bottom_up()
2073 for (i = znode->child_cnt; i > n; i--) { in insert_zbranch()
[all …]
Dcommit.c555 int lnum, offs, len, err = 0, last_level, child_cnt; in dbg_check_old_index() local
601 child_cnt = le16_to_cpu(idx->child_cnt); in dbg_check_old_index()
602 if (child_cnt < 1 || child_cnt > c->fanout) { in dbg_check_old_index()
638 br = ubifs_idx_branch(c, idx, child_cnt - 1); in dbg_check_old_index()
668 if (iip + 1 < le16_to_cpu(idx->child_cnt)) { in dbg_check_old_index()
689 if (iip + 1 < le16_to_cpu(idx->child_cnt)) { in dbg_check_old_index()
Dmisc.h75 while (start < znode->child_cnt) { in ubifs_tnc_find_child()
186 static inline int ubifs_idx_node_sz(const struct ubifs_info *c, int child_cnt) in ubifs_idx_node_sz() argument
189 * child_cnt; in ubifs_idx_node_sz()
Ddebug.c499 n = le16_to_cpu(idx->child_cnt); in ubifs_dump_node()
863 znode->level, znode->child_cnt, znode->flags); in ubifs_dump_znode()
865 if (znode->child_cnt <= 0 || znode->child_cnt > c->fanout) { in ubifs_dump_znode()
871 for (n = 0; n < znode->child_cnt; n++) { in ubifs_dump_znode()
1270 if (znode->child_cnt <= 0 || znode->child_cnt > c->fanout) { in dbg_check_znode()
1328 if (znode->iip >= zp->child_cnt) { in dbg_check_znode()
1354 if (n + 1 < zp->child_cnt) { in dbg_check_znode()
1363 &znode->zbranch[znode->child_cnt - 1].key); in dbg_check_znode()
1381 for (n = 1; n < znode->child_cnt; n++) { in dbg_check_znode()
1413 for (n = 0; n < znode->child_cnt; n++) { in dbg_check_znode()
[all …]
Dubifs-media.h828 __le16 child_cnt; member
Dsb.c277 idx->child_cnt = cpu_to_le16(1); in create_default_filesystem()
Dubifs.h785 int child_cnt; member