Lines Matching refs:totlen

335 	uint32_t xid, version, totlen, crc;
342 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen))))
350 totlen = PAD(sizeof(struct jffs2_raw_xattr)
352 if (totlen != je32_to_cpu(rx->totlen)) {
354 ofs, je32_to_cpu(rx->totlen), totlen);
355 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen))))
366 = jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, NULL);
376 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, (void *)xd);
398 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rr->totlen)))))
403 if (PAD(sizeof(struct jffs2_raw_xref)) != je32_to_cpu(rr->totlen)) {
405 ofs, je32_to_cpu(rr->totlen),
407 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rr->totlen))))
433 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(rr->totlen)), (void *)ref);
761 crcnode.totlen = node->totlen;
769 je32_to_cpu(node->totlen),
778 if (ofs + je32_to_cpu(node->totlen) > jeb->offset + c->sector_size) {
781 ofs, je32_to_cpu(node->totlen));
793 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen)))))
795 ofs += PAD(je32_to_cpu(node->totlen));
814 ofs += PAD(je32_to_cpu(node->totlen));
818 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) {
821 je32_to_cpu(node->totlen), buf_len,
831 ofs += PAD(je32_to_cpu(node->totlen));
836 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) {
839 je32_to_cpu(node->totlen), buf_len,
850 ofs += PAD(je32_to_cpu(node->totlen));
853 if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) {
856 je32_to_cpu(node->totlen), buf_len,
867 ofs += PAD(je32_to_cpu(node->totlen));
873 if (je32_to_cpu(node->totlen) != c->cleanmarker_size) {
874 pr_notice("CLEANMARKER node found at 0x%08x has totlen 0x%x != normal 0x%x\n",
875 ofs, je32_to_cpu(node->totlen),
895 jffs2_sum_add_padding_mem(s, je32_to_cpu(node->totlen));
896 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen)))))
898 ofs += PAD(je32_to_cpu(node->totlen));
909 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen)))))
911 ofs += PAD(je32_to_cpu(node->totlen));
922 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen)))))
924 ofs += PAD(je32_to_cpu(node->totlen));
931 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(node->totlen)), NULL);
935 ofs += PAD(je32_to_cpu(node->totlen));
1014 * We believe totlen because the CRC on the node
1018 PAD(je32_to_cpu(ri->totlen)));
1029 jffs2_link_node_ref(c, jeb, ofs | REF_UNCHECKED, PAD(je32_to_cpu(ri->totlen)), ic);
1063 /* We believe totlen because the CRC on the node _header_ was OK, just the node itself failed. */
1064 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rd->totlen)))))
1091 /* FIXME: Why do we believe totlen? */
1092 /* We believe totlen because the CRC on the node _header_ was OK, just the name failed. */
1093 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rd->totlen)))))
1104 PAD(je32_to_cpu(rd->totlen)), ic);