Lines Matching refs:pnode
574 struct ubifs_pnode *pnode) in next_pnode_to_dirty() argument
580 nnode = pnode->parent; in next_pnode_to_dirty()
581 for (iip = pnode->iip + 1; iip < UBIFS_LPT_FANOUT; iip++) { in next_pnode_to_dirty()
667 static void add_pnode_dirt(struct ubifs_info *c, struct ubifs_pnode *pnode) in add_pnode_dirt() argument
669 ubifs_add_lpt_dirt(c, pnode->parent->nbranch[pnode->iip].lnum, in add_pnode_dirt()
678 static void do_make_pnode_dirty(struct ubifs_info *c, struct ubifs_pnode *pnode) in do_make_pnode_dirty() argument
681 if (!test_and_set_bit(DIRTY_CNODE, &pnode->flags)) { in do_make_pnode_dirty()
685 add_pnode_dirt(c, pnode); in do_make_pnode_dirty()
687 nnode = pnode->parent; in do_make_pnode_dirty()
712 struct ubifs_pnode *pnode; in make_tree_dirty() local
714 pnode = pnode_lookup(c, 0); in make_tree_dirty()
715 if (IS_ERR(pnode)) in make_tree_dirty()
716 return PTR_ERR(pnode); in make_tree_dirty()
718 while (pnode) { in make_tree_dirty()
719 do_make_pnode_dirty(c, pnode); in make_tree_dirty()
720 pnode = next_pnode_to_dirty(c, pnode); in make_tree_dirty()
721 if (IS_ERR(pnode)) in make_tree_dirty()
722 return PTR_ERR(pnode); in make_tree_dirty()
965 struct ubifs_pnode *pnode; in make_pnode_dirty() local
968 pnode = pnode_lookup(c, node_num); in make_pnode_dirty()
969 if (IS_ERR(pnode)) in make_pnode_dirty()
970 return PTR_ERR(pnode); in make_pnode_dirty()
971 branch = &pnode->parent->nbranch[pnode->iip]; in make_pnode_dirty()
974 do_make_pnode_dirty(c, pnode); in make_pnode_dirty()
1564 struct ubifs_pnode *pnode; in dbg_is_pnode_dirty() local
1568 pnode = pnode_lookup(c, i); in dbg_is_pnode_dirty()
1569 if (IS_ERR(pnode)) in dbg_is_pnode_dirty()
1570 return PTR_ERR(pnode); in dbg_is_pnode_dirty()
1571 branch = &pnode->parent->nbranch[pnode->iip]; in dbg_is_pnode_dirty()
1574 if (test_bit(DIRTY_CNODE, &pnode->flags)) in dbg_is_pnode_dirty()
1721 struct ubifs_pnode *pnode; in dbg_check_ltab() local
1723 pnode = pnode_lookup(c, i); in dbg_check_ltab()
1724 if (IS_ERR(pnode)) in dbg_check_ltab()
1725 return PTR_ERR(pnode); in dbg_check_ltab()