Lines Matching refs:node
98 JFFS2_WARNING("UNKNOWN node type %u\n",
246 /* Called from wbuf.c to collect writed node info */
251 union jffs2_node_union *node;
259 node = invecs[0].iov_base;
263 switch (je16_to_cpu(node->u.nodetype)) {
271 temp->nodetype = node->i.nodetype;
272 temp->inode = node->i.ino;
273 temp->version = node->i.version;
275 temp->totlen = node->i.totlen;
283 kmalloc(sizeof(struct jffs2_sum_dirent_mem) + node->d.nsize, GFP_KERNEL);
288 temp->nodetype = node->d.nodetype;
289 temp->totlen = node->d.totlen;
291 temp->pino = node->d.pino;
292 temp->version = node->d.version;
293 temp->ino = node->d.ino;
294 temp->nsize = node->d.nsize;
295 temp->type = node->d.type;
300 memcpy(temp->name,node->d.name,node->d.nsize);
304 memcpy(temp->name,invecs[1].iov_base,node->d.nsize);
321 temp->nodetype = node->x.nodetype;
322 temp->xid = node->x.xid;
323 temp->version = node->x.version;
324 temp->totlen = node->x.totlen;
335 temp->nodetype = node->r.nodetype;
343 dbg_summary("node PADDING\n");
344 c->summary->sum_padded += je32_to_cpu(node->u.totlen);
348 dbg_summary("node CLEANMARKER\n");
352 dbg_summary("node SUMMARY\n");
356 /* If you implement a new node type you should also implement
506 /* node is not the newest one */
510 raw->next_in_ino = xd->node->next_in_ino;
511 xd->node->next_in_ino = raw;
543 *pseudo_random += ref->node->flash_offset;
551 JFFS2_WARNING("Unsupported node type %x found in summary! Exiting...\n", nodetype);
555 /* For compatible node types, just fall back to the full scan */
571 /* Process the summary node - called from jffs2_scan_eraseblock() */
585 /* OK, now check for node validity and CRC */
592 dbg_summary("Summary node header is corrupt (bad CRC or "
598 dbg_summary("Summary node is corrupt (wrong erasesize?)\n");
605 dbg_summary("Summary node is corrupt (bad CRC)\n");
612 dbg_summary("Summary node data is corrupt (bad CRC)\n");
618 dbg_summary("Summary : CLEANMARKER node \n");
625 dbg_summary("CLEANMARKER node has totlen 0x%x != normal 0x%x\n",
630 dbg_summary("CLEANMARKER node not first node in block "
667 JFFS2_WARNING("Summary node crc error, skipping summary information.\n");
783 dbg_summary("Writing unknown RWCOMPAT_COPY node type %x\n",
789 BUG(); /* unknown node in summary information */