Lines Matching defs:node
185 union jffs2_node_union *node)
190 dbg_noderef("incore_replace_raw: node at %p is {%04x,%04x}\n",
191 node, je16_to_cpu(node->u.magic), je16_to_cpu(node->u.nodetype));
193 BUG_ON(je16_to_cpu(node->u.magic) != 0x1985 &&
194 je16_to_cpu(node->u.magic) != 0);
196 switch (je16_to_cpu(node->u.nodetype)) {
202 frag = jffs2_lookup_node_frag(&f->fragtree, je32_to_cpu(node->i.offset));
205 while (!frag->node || frag->node->raw != raw) {
209 dbg_noderef("Will replace ->raw in full_dnode at %p\n", frag->node);
210 return &frag->node->raw;
223 je16_to_cpu(node->u.nodetype));
296 /* Find the first node to be recovered, by skipping over every
297 node which ends before the wbuf starts, or which is obsolete. */
303 dbg_noderef("Skipping node at 0x%08x(%d)-0x%08x which is either before 0x%08x or obsolete\n",
309 dbg_noderef("First node to be recovered is at 0x%08x(%d)-0x%08x\n",
337 /* First affected node was already partially written.
369 /* If this was the only node to be recovered, give up */
401 pr_warn("Failed to allocate node refs for wbuf recovery. Data loss ensues.\n");
478 BUG_ON(xd->node != raw);
479 adjust_ref = &xd->node;
484 BUG_ON(xr->node != raw);
485 adjust_ref = &xr->node;
491 /* Remove the old node from the per-inode list */
625 buffer for us, and will deal with the node refs etc. later. */
976 * check the node. If data are corrupted node check will sort