Lines Matching refs:totlen
139 uint32_t crc, offset, totlen; in do_verify_xattr_datum() local
161 totlen = PAD(sizeof(rx) + rx.name_len + 1 + je16_to_cpu(rx.value_len)); in do_verify_xattr_datum()
164 || je32_to_cpu(rx.totlen) != totlen in do_verify_xattr_datum()
171 je32_to_cpu(rx.totlen), totlen, in do_verify_xattr_datum()
186 totlen = PAD(ref_totlen(c, jeb, raw)); in do_verify_xattr_datum()
188 c->unchecked_size -= totlen; c->used_size += totlen; in do_verify_xattr_datum()
189 jeb->unchecked_size -= totlen; jeb->used_size += totlen; in do_verify_xattr_datum()
290 int rc, totlen; in save_xattr_datum() local
300 totlen = vecs[0].iov_len + vecs[1].iov_len; in save_xattr_datum()
306 rx.totlen = cpu_to_je32(PAD(totlen)); in save_xattr_datum()
318 if (rc || totlen != length) { in save_xattr_datum()
320 rc, totlen, length, phys_ofs); in save_xattr_datum()
323 jffs2_add_physical_node_ref(c, phys_ofs | REF_OBSOLETE, PAD(totlen), NULL); in save_xattr_datum()
328 jffs2_add_physical_node_ref(c, phys_ofs | REF_PRISTINE, PAD(totlen), (void *)xd); in save_xattr_datum()
450 uint32_t crc, offset, totlen; in verify_xattr_ref() local
474 || je32_to_cpu(rr.totlen) != PAD(sizeof(rr))) { in verify_xattr_ref()
479 je32_to_cpu(rr.totlen), PAD(sizeof(rr))); in verify_xattr_ref()
492 totlen = PAD(ref_totlen(c, jeb, raw)); in verify_xattr_ref()
494 c->unchecked_size -= totlen; c->used_size += totlen; in verify_xattr_ref()
495 jeb->unchecked_size -= totlen; jeb->used_size += totlen; in verify_xattr_ref()
516 rr.totlen = cpu_to_je32(PAD(sizeof(rr))); in save_xattr_ref()
1222 uint32_t totlen, length, old_ofs; in jffs2_garbage_collect_xattr_datum() local
1237 totlen = PAD(sizeof(struct jffs2_raw_xattr) in jffs2_garbage_collect_xattr_datum()
1239 rc = jffs2_reserve_space_gc(c, totlen, &length, JFFS2_SUMMARY_XATTR_SIZE); in jffs2_garbage_collect_xattr_datum()
1241 JFFS2_WARNING("jffs2_reserve_space_gc()=%d, request=%u\n", rc, totlen); in jffs2_garbage_collect_xattr_datum()
1258 uint32_t totlen, length, old_ofs; in jffs2_garbage_collect_xattr_ref() local
1270 totlen = ref_totlen(c, c->gcblock, ref->node); in jffs2_garbage_collect_xattr_ref()
1272 rc = jffs2_reserve_space_gc(c, totlen, &length, JFFS2_SUMMARY_XREF_SIZE); in jffs2_garbage_collect_xattr_ref()
1275 __func__, rc, totlen); in jffs2_garbage_collect_xattr_ref()
1294 uint32_t totlen; in jffs2_verify_xattr() local
1308 totlen = PAD(ref_totlen(c, jeb, raw)); in jffs2_verify_xattr()
1309 c->unchecked_size -= totlen; c->used_size += totlen; in jffs2_verify_xattr()
1310 jeb->unchecked_size -= totlen; jeb->used_size += totlen; in jffs2_verify_xattr()