Lines Matching refs:cnt

98 	int cnt = 0;  in get_cnodes_to_commit()  local
110 cnt += 1; in get_cnodes_to_commit()
121 cnt += 1; in get_cnodes_to_commit()
123 dbg_cmt("committing %d cnodes", cnt); in get_cnodes_to_commit()
124 dbg_lp("committing %d cnodes", cnt); in get_cnodes_to_commit()
125 ubifs_assert(cnt == c->dirty_nn_cnt + c->dirty_pn_cnt); in get_cnodes_to_commit()
126 return cnt; in get_cnodes_to_commit()
806 int i, cnt = 0; in populate_lsave() local
820 c->lsave[cnt++] = lprops->lnum; in populate_lsave()
821 if (cnt >= c->lsave_cnt) in populate_lsave()
825 c->lsave[cnt++] = lprops->lnum; in populate_lsave()
826 if (cnt >= c->lsave_cnt) in populate_lsave()
830 c->lsave[cnt++] = lprops->lnum; in populate_lsave()
831 if (cnt >= c->lsave_cnt) in populate_lsave()
835 for (i = 0; i < heap->cnt; i++) { in populate_lsave()
836 c->lsave[cnt++] = heap->arr[i]->lnum; in populate_lsave()
837 if (cnt >= c->lsave_cnt) in populate_lsave()
841 for (i = 0; i < heap->cnt; i++) { in populate_lsave()
842 c->lsave[cnt++] = heap->arr[i]->lnum; in populate_lsave()
843 if (cnt >= c->lsave_cnt) in populate_lsave()
847 for (i = 0; i < heap->cnt; i++) { in populate_lsave()
848 c->lsave[cnt++] = heap->arr[i]->lnum; in populate_lsave()
849 if (cnt >= c->lsave_cnt) in populate_lsave()
853 while (cnt < c->lsave_cnt) in populate_lsave()
854 c->lsave[cnt++] = c->main_first; in populate_lsave()
1226 int err, cnt; in ubifs_lpt_start_commit() local
1274 cnt = get_cnodes_to_commit(c); in ubifs_lpt_start_commit()
1275 ubifs_assert(cnt != 0); in ubifs_lpt_start_commit()
1555 int i, cnt; in dbg_is_pnode_dirty() local
1557 cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); in dbg_is_pnode_dirty()
1558 for (i = 0; i < cnt; i++) { in dbg_is_pnode_dirty()
1706 int lnum, err, i, cnt; in dbg_check_ltab() local
1712 cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); in dbg_check_ltab()
1713 for (i = 0; i < cnt; i++) { in dbg_check_ltab()
2030 for (i = 0; i < heap->cnt; i++) in dbg_populate_lsave()
2033 for (i = 0; i < heap->cnt; i++) in dbg_populate_lsave()
2036 for (i = 0; i < heap->cnt; i++) in dbg_populate_lsave()