/fs/jffs2/ |
D | scan.c | 335 uint32_t xid, version, totlen, crc; in jffs2_scan_xattr_node() local 342 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node() 350 totlen = PAD(sizeof(struct jffs2_raw_xattr) in jffs2_scan_xattr_node() 352 if (totlen != je32_to_cpu(rx->totlen)) { in jffs2_scan_xattr_node() 354 ofs, je32_to_cpu(rx->totlen), totlen); in jffs2_scan_xattr_node() 355 if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen)))) in jffs2_scan_xattr_node() 366 = jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, NULL); in jffs2_scan_xattr_node() 376 jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, (void *)xd); in jffs2_scan_xattr_node() 398 if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rr->totlen))))) in jffs2_scan_xref_node() 403 if (PAD(sizeof(struct jffs2_raw_xref)) != je32_to_cpu(rr->totlen)) { in jffs2_scan_xref_node() [all …]
|
D | summary.c | 127 temp->totlen = ri->totlen; in jffs2_sum_add_inode_mem() 143 temp->totlen = rd->totlen; in jffs2_sum_add_dirent_mem() 170 temp->totlen = rx->totlen; in jffs2_sum_add_xattr_mem() 275 temp->totlen = node->i.totlen; in jffs2_sum_add_kvec() 289 temp->totlen = node->d.totlen; in jffs2_sum_add_kvec() 324 temp->totlen = node->x.totlen; in jffs2_sum_add_kvec() 344 c->summary->sum_padded += je32_to_cpu(node->u.totlen); in jffs2_sum_add_kvec() 416 jeb->offset + je32_to_cpu(spi->offset) + je32_to_cpu(spi->totlen)); in jffs2_sum_process_sum_data() 425 PAD(je32_to_cpu(spi->totlen)), ic); in jffs2_sum_process_sum_data() 441 jeb->offset + je32_to_cpu(spd->offset) + je32_to_cpu(spd->totlen)); in jffs2_sum_process_sum_data() [all …]
|
D | xattr.c | 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() [all …]
|
D | summary.h | 51 jint32_t totlen; /* record length */ member 57 jint32_t totlen; /* record length */ member 73 jint32_t totlen; /* node length */ member 106 jint32_t totlen; /* record length */ member 113 jint32_t totlen; /* record length */ member 130 jint32_t totlen; member
|
D | write.c | 46 ri->totlen = cpu_to_je32(PAD(sizeof(*ri))); in jffs2_do_new_inode() 82 if (je32_to_cpu(ri->totlen) != sizeof(*ri) + datalen) { in jffs2_write_dnode() 84 __func__, je32_to_cpu(ri->totlen), in jffs2_write_dnode() 196 je32_to_cpu(ri->data_crc), je32_to_cpu(ri->totlen)); in jffs2_write_dnode() 377 ri->totlen = cpu_to_je32(sizeof(*ri) + cdatalen); in jffs2_write_inode_range() 512 rd->totlen = cpu_to_je32(sizeof(*rd) + qstr->len); in jffs2_do_create() 575 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_do_unlink() 692 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_do_link()
|
D | dir.c | 334 ri->totlen = cpu_to_je32(sizeof(*ri) + inode->i_size); in jffs2_symlink() 401 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_symlink() 545 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_mkdir() 667 ri->totlen = cpu_to_je32(sizeof(*ri) + devlen); in jffs2_mknod() 719 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_mknod()
|
D | debug.c | 319 uint32_t totlen = ref_totlen(c, jeb, ref2); in __jffs2_dbg_acct_paranoia_check_nolock() local 329 my_unchecked_size += totlen; in __jffs2_dbg_acct_paranoia_check_nolock() 331 my_used_size += totlen; in __jffs2_dbg_acct_paranoia_check_nolock() 333 my_dirty_size += totlen; in __jffs2_dbg_acct_paranoia_check_nolock() 792 printk(JFFS2_DBG "totlen:\t%#08x\n", je32_to_cpu(node.u.totlen)); in __jffs2_dbg_dump_node()
|
D | gc.c | 815 ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); in jffs2_garbage_collect_metadata() 861 rd.totlen = cpu_to_je32(sizeof(rd) + rd.nsize); in jffs2_garbage_collect_dirent() 1045 if (je32_to_cpu(ri.totlen) != sizeof(ri)) { in jffs2_garbage_collect_hole() 1048 je32_to_cpu(ri.totlen), sizeof(ri)); in jffs2_garbage_collect_hole() 1072 ri.totlen = cpu_to_je32(sizeof(ri)); in jffs2_garbage_collect_hole() 1364 ri.totlen = cpu_to_je32(sizeof(ri) + cdatalen); in jffs2_garbage_collect_dnode()
|
D | readinode.c | 610 if (unlikely(PAD((rd->nsize + sizeof(*rd))) != PAD(je32_to_cpu(rd->totlen)))) { in read_direntry() 612 ref_offset(ref), rd->nsize, je32_to_cpu(rd->totlen)); in read_direntry() 747 unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) { in read_dnode() 896 je32_to_cpu(un->totlen), je32_to_cpu(un->hdr_crc)); in read_unknown() 1064 je32_to_cpu(node->u.totlen), in jffs2_get_inode_nodes()
|
D | nodemgmt.c | 769 if (PAD(je32_to_cpu(n.totlen)) != PAD(freed_len)) { in jffs2_mark_node_obsolete() 771 je32_to_cpu(n.totlen), freed_len); in jffs2_mark_node_obsolete()
|
D | file.c | 164 ri.totlen = cpu_to_je32(sizeof(ri)); in jffs2_write_begin()
|
D | erase.c | 428 .totlen = cpu_to_je32(c->cleanmarker_size) in jffs2_mark_erased_block()
|
D | wbuf.c | 620 padnode->totlen = cpu_to_je32(c->wbuf_pagesize - c->wbuf_len); in __jffs2_flush_wbuf() 1026 .totlen = constant_cpu_to_je32(8)
|
D | fs.c | 98 ri->totlen = cpu_to_je32(sizeof(*ri) + mdatalen); in jffs2_do_setattr()
|
/fs/gfs2/ |
D | dir.c | 449 unsigned totlen = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_find_offset() local 451 if (ptr < (void *)dent || ptr >= (void *)dent + totlen) in gfs2_dirent_find_offset() 457 if ((void *)dent + totlen >= ptr + required) in gfs2_dirent_find_offset() 468 unsigned totlen = be16_to_cpu(dent->de_rec_len); in gfs2_dirent_find_space() local 472 if (totlen - actual >= required) in gfs2_dirent_find_space() 713 unsigned totlen; in do_init_dirent() local 715 totlen = be16_to_cpu(dent->de_rec_len); in do_init_dirent() 716 BUG_ON(offset + name->len > totlen); in do_init_dirent() 720 gfs2_qstr2dirent(name, totlen - offset, ndent); in do_init_dirent()
|