Lines Matching refs:pnode
553 struct ubifs_pnode *pnode) in next_pnode_to_dirty() argument
559 nnode = pnode->parent; in next_pnode_to_dirty()
560 for (iip = pnode->iip + 1; iip < UBIFS_LPT_FANOUT; iip++) { in next_pnode_to_dirty()
614 static void add_pnode_dirt(struct ubifs_info *c, struct ubifs_pnode *pnode) in add_pnode_dirt() argument
616 ubifs_add_lpt_dirt(c, pnode->parent->nbranch[pnode->iip].lnum, in add_pnode_dirt()
625 static void do_make_pnode_dirty(struct ubifs_info *c, struct ubifs_pnode *pnode) in do_make_pnode_dirty() argument
628 if (!test_and_set_bit(DIRTY_CNODE, &pnode->flags)) { in do_make_pnode_dirty()
632 add_pnode_dirt(c, pnode); in do_make_pnode_dirty()
634 nnode = pnode->parent; in do_make_pnode_dirty()
659 struct ubifs_pnode *pnode; in make_tree_dirty() local
661 pnode = ubifs_pnode_lookup(c, 0); in make_tree_dirty()
662 if (IS_ERR(pnode)) in make_tree_dirty()
663 return PTR_ERR(pnode); in make_tree_dirty()
665 while (pnode) { in make_tree_dirty()
666 do_make_pnode_dirty(c, pnode); in make_tree_dirty()
667 pnode = next_pnode_to_dirty(c, pnode); in make_tree_dirty()
668 if (IS_ERR(pnode)) in make_tree_dirty()
669 return PTR_ERR(pnode); in make_tree_dirty()
912 struct ubifs_pnode *pnode; in make_pnode_dirty() local
915 pnode = ubifs_pnode_lookup(c, node_num); in make_pnode_dirty()
916 if (IS_ERR(pnode)) in make_pnode_dirty()
917 return PTR_ERR(pnode); in make_pnode_dirty()
918 branch = &pnode->parent->nbranch[pnode->iip]; in make_pnode_dirty()
921 do_make_pnode_dirty(c, pnode); in make_pnode_dirty()
1517 struct ubifs_pnode *pnode; in dbg_is_pnode_dirty() local
1521 pnode = ubifs_pnode_lookup(c, i); in dbg_is_pnode_dirty()
1522 if (IS_ERR(pnode)) in dbg_is_pnode_dirty()
1523 return PTR_ERR(pnode); in dbg_is_pnode_dirty()
1524 branch = &pnode->parent->nbranch[pnode->iip]; in dbg_is_pnode_dirty()
1527 if (test_bit(DIRTY_CNODE, &pnode->flags)) in dbg_is_pnode_dirty()
1671 struct ubifs_pnode *pnode; in dbg_check_ltab() local
1673 pnode = ubifs_pnode_lookup(c, i); in dbg_check_ltab()
1674 if (IS_ERR(pnode)) in dbg_check_ltab()
1675 return PTR_ERR(pnode); in dbg_check_ltab()