Home
last modified time | relevance | path

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

/linux/fs/ubifs/
H A 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()
313 znode->child_cnt = le16_to_cpu(idx->child_cnt); in read_znode()
317 lnum, offs, znode->level, znode->child_cnt); in read_znode()
319 if (znode->child_cnt > c->fanout || znode->level > UBIFS_MAX_LEVELS) { in read_znode()
[all …]
H A 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 …]
H A Dcommit.c566 int lnum, offs, len, err = 0, last_level, child_cnt; in dbg_check_old_index() local
612 child_cnt = le16_to_cpu(idx->child_cnt); in dbg_check_old_index()
613 if (child_cnt < 1 || child_cnt > c->fanout) { in dbg_check_old_index()
649 br = ubifs_idx_branch(c, idx, child_cnt - 1); in dbg_check_old_index()
679 if (iip + 1 < le16_to_cpu(idx->child_cnt)) { in dbg_check_old_index()
700 if (iip + 1 < le16_to_cpu(idx->child_cnt)) { in dbg_check_old_index()
H A 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()
H A Dtnc.c244 const int n = new_zn->child_cnt; in replace_znode()
646 if (nn < znode->child_cnt) { in tnc_next()
658 if (nn < znode->child_cnt) { in tnc_next()
707 nn = znode->child_cnt - 1; in tnc_prev()
712 nn = znode->child_cnt - 1; in tnc_prev()
790 if (*n == (*zn)->child_cnt - 1) { in resolve_collision()
964 if (*n == (*zn)->child_cnt - 1) { in fallible_resolve_collision()
1168 ubifs_assert(c, path[p - 1] < zp->child_cnt); in dirty_cow_bottom_up()
1178 ubifs_assert(c, path[p - 1] < znode->child_cnt); in dirty_cow_bottom_up()
2074 for (i = znode->child_cnt; i > n; i--) { in insert_zbranch()
[all …]
H A Dubifs-media.h828 __le16 child_cnt; member
H A Dsb.c280 idx->child_cnt = cpu_to_le16(1); in create_default_filesystem()
H A Dubifs.h787 int child_cnt; member