je32_to_cpu
je32_to_cpu(entry->e_id));
je32_to_cpu(entry->e_id));
ver = je32_to_cpu(header->a_version);
printk(JFFS2_DBG "totlen:\t%#08x\n", je32_to_cpu(node.u.totlen));
printk(JFFS2_DBG "hdr_crc:\t%#08x\n", je32_to_cpu(node.u.hdr_crc));
if (crc != je32_to_cpu(node.u.hdr_crc)) {
printk(JFFS2_DBG "ino:\t%#08x\n", je32_to_cpu(node.i.ino));
printk(JFFS2_DBG "version:\t%#08x\n", je32_to_cpu(node.i.version));
printk(JFFS2_DBG "isize:\t%#08x\n", je32_to_cpu(node.i.isize));
printk(JFFS2_DBG "atime:\t%#08x\n", je32_to_cpu(node.i.atime));
printk(JFFS2_DBG "mtime:\t%#08x\n", je32_to_cpu(node.i.mtime));
printk(JFFS2_DBG "ctime:\t%#08x\n", je32_to_cpu(node.i.ctime));
printk(JFFS2_DBG "offset:\t%#08x\n", je32_to_cpu(node.i.offset));
printk(JFFS2_DBG "csize:\t%#08x\n", je32_to_cpu(node.i.csize));
printk(JFFS2_DBG "dsize:\t%#08x\n", je32_to_cpu(node.i.dsize));
printk(JFFS2_DBG "data_crc:\t%#08x\n", je32_to_cpu(node.i.data_crc));
printk(JFFS2_DBG "node_crc:\t%#08x\n", je32_to_cpu(node.i.node_crc));
if (crc != je32_to_cpu(node.i.node_crc)) {
printk(JFFS2_DBG "pino:\t%#08x\n", je32_to_cpu(node.d.pino));
printk(JFFS2_DBG "version:\t%#08x\n", je32_to_cpu(node.d.version));
printk(JFFS2_DBG "ino:\t%#08x\n", je32_to_cpu(node.d.ino));
printk(JFFS2_DBG "mctime:\t%#08x\n", je32_to_cpu(node.d.mctime));
printk(JFFS2_DBG "node_crc:\t%#08x\n", je32_to_cpu(node.d.node_crc));
printk(JFFS2_DBG "name_crc:\t%#08x\n", je32_to_cpu(node.d.name_crc));
if (crc != je32_to_cpu(node.d.node_crc)) {
inode_set_ctime_to_ts(dir_i, ITIME(je32_to_cpu(ri->ctime))));
inode_set_ctime_to_ts(dir_i, ITIME(je32_to_cpu(rd->mctime))));
inode_set_ctime_to_ts(dir_i, ITIME(je32_to_cpu(rd->mctime))));
inode_set_ctime_to_ts(dir_i, ITIME(je32_to_cpu(rd->mctime))));
inode_set_ctime_to_ts(inode, ITIME(je32_to_cpu(ri->ctime))));
inode_set_atime_to_ts(inode, ITIME(je32_to_cpu(ri->atime)));
inode_set_ctime_to_ts(inode, ITIME(je32_to_cpu(ri->ctime)));
inode_set_mtime_to_ts(inode, ITIME(je32_to_cpu(ri->mtime)));
inode->i_size = je32_to_cpu(latest_node.isize);
inode_set_atime_to_ts(inode, ITIME(je32_to_cpu(latest_node.atime)));
inode_set_mtime_to_ts(inode, ITIME(je32_to_cpu(latest_node.mtime)));
inode_set_ctime_to_ts(inode, ITIME(je32_to_cpu(latest_node.ctime)));
rdev = new_decode_dev(je32_to_cpu(jdev.new_id));
inode->i_ino = je32_to_cpu(ri->ino);
if (je32_to_cpu(ri.totlen) != sizeof(ri)) {
je32_to_cpu(ri.totlen), sizeof(ri));
if (crc != je32_to_cpu(ri.node_crc)) {
je32_to_cpu(ri.node_crc), crc);
if (je32_to_cpu(ri.version) == f->highest_version) {
__func__, fn->frags, je32_to_cpu(ri.version),
f->highest_version, je32_to_cpu(ri.ino));
if (je32_to_cpu(node->u.hdr_crc) != crc) {
ref_offset(raw), je32_to_cpu(node->u.hdr_crc), crc);
if (je32_to_cpu(node->i.node_crc) != crc) {
ref_offset(raw), je32_to_cpu(node->i.node_crc),
if (je32_to_cpu(node->i.dsize)) {
crc = crc32(0, node->i.data, je32_to_cpu(node->i.csize));
if (je32_to_cpu(node->i.data_crc) != crc) {
je32_to_cpu(node->i.data_crc), crc);
if (je32_to_cpu(node->d.node_crc) != crc) {
je32_to_cpu(node->d.node_crc), crc);
if (je32_to_cpu(node->d.name_crc) != crc) {
je32_to_cpu(node->d.name_crc), crc);
if (je32_to_cpu(rd->name_crc) != name_crc)
if (rd->nsize != name_len || !je32_to_cpu(rd->ino))
ref_offset(raw), je32_to_cpu(rd->ino));
#define dirent_node_state(rd) ( (je32_to_cpu((rd)->ino)?REF_PRISTINE:REF_NORMAL) )
if (PAD(je32_to_cpu(n.totlen)) != PAD(freed_len)) {
je32_to_cpu(n.totlen), freed_len);
if (len < je32_to_cpu(ri->dsize)) {
decomprbuf = kmalloc(je32_to_cpu(ri->dsize), GFP_KERNEL);
jffs2_dbg(2, "Read %d bytes to %p\n", je32_to_cpu(ri->csize),
je32_to_cpu(ri->csize), &readlen, readbuf);
if (!ret && readlen != je32_to_cpu(ri->csize))
crc = crc32(0, readbuf, je32_to_cpu(ri->csize));
if (crc != je32_to_cpu(ri->data_crc)) {
je32_to_cpu(ri->data_crc), crc, ref_offset(fd->raw));
je32_to_cpu(ri->csize), readbuf,
je32_to_cpu(ri->dsize), decomprbuf);
ret = jffs2_decompress(c, f, ri->compr | (ri->usercompr << 8), readbuf, decomprbuf, je32_to_cpu(ri->csize), je32_to_cpu(ri->dsize));
if (len < je32_to_cpu(ri->dsize)) {
ref_offset(fd->raw), je32_to_cpu(ri->node_crc),
crc, je32_to_cpu(ri->dsize), je32_to_cpu(ri->csize),
je32_to_cpu(ri->offset), buf);
if (crc != je32_to_cpu(ri->node_crc)) {
je32_to_cpu(ri->node_crc), crc, ref_offset(fd->raw));
if (ri->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(ri->dsize) &&
je32_to_cpu(ri->csize)) {
D1(if(ofs + len > je32_to_cpu(ri->dsize)) {
len, ofs, je32_to_cpu(ri->dsize));
if (ri->compr == JFFS2_COMPR_NONE && len == je32_to_cpu(ri->dsize)) {
readbuf = kmalloc(je32_to_cpu(ri->csize), GFP_KERNEL);
if (je32_to_cpu(node->u.hdr_crc) != crc32(0, node, sizeof(node->u)-4)) {
je32_to_cpu(node->u.totlen),
je32_to_cpu(node->u.hdr_crc));
if (crc != je32_to_cpu(latest_node->node_crc)) {
if (rii.mctime_ver > je32_to_cpu(latest_node->version)) {
new_size = jffs2_truncate_fragtree(c, &f->fragtree, je32_to_cpu(latest_node->isize));
if (new_size != je32_to_cpu(latest_node->isize)) {
f->inocache->ino, je32_to_cpu(latest_node->isize), new_size);
if (!je32_to_cpu(latest_node->isize))
uint32_t csize = je32_to_cpu(latest_node->csize);
if (unlikely(crc != je32_to_cpu(rd->node_crc))) {
ref_offset(ref), je32_to_cpu(rd->node_crc), crc);
if (unlikely(PAD((rd->nsize + sizeof(*rd))) != PAD(je32_to_cpu(rd->totlen)))) {
ref_offset(ref), rd->nsize, je32_to_cpu(rd->totlen));
fd->version = je32_to_cpu(rd->version);
fd->ino = je32_to_cpu(rd->ino);
if(fd->version > rii->mctime_ver && je32_to_cpu(rd->mctime)) {
rii->latest_mctime = je32_to_cpu(rd->mctime);
if (unlikely(crc != je32_to_cpu(rd->name_crc))) {
ref_offset(ref), je32_to_cpu(rd->node_crc), crc);
if (unlikely(crc != je32_to_cpu(rd->node_crc))) {
ref_offset(ref), je32_to_cpu(rd->node_crc), crc);
csize = je32_to_cpu(rd->csize);
if (unlikely(je32_to_cpu(rd->offset) > je32_to_cpu(rd->isize)) ||
unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) {
if (len >= csize && unlikely(tn->partial_crc != je32_to_cpu(rd->data_crc))) {
ref_offset(ref), tn->partial_crc, je32_to_cpu(rd->data_crc));
tn->version = je32_to_cpu(rd->version);
tn->fn->ofs = je32_to_cpu(rd->offset);
tn->data_crc = je32_to_cpu(rd->data_crc);
if (rd->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(rd->dsize) && csize)
tn->fn->size = je32_to_cpu(rd->dsize);
ref_offset(ref), je32_to_cpu(rd->version),
je32_to_cpu(rd->offset), je32_to_cpu(rd->dsize), csize);
dbg_readinode2("After adding ver %d:\n", je32_to_cpu(rd->version));
je32_to_cpu(un->totlen), je32_to_cpu(un->hdr_crc));
if (crc != je32_to_cpu(ri->node_crc)) {
__func__, ofs, je32_to_cpu(ri->node_crc), crc);
PAD(je32_to_cpu(ri->totlen)));
jffs2_link_node_ref(c, jeb, ofs | REF_UNCHECKED, PAD(je32_to_cpu(ri->totlen)), ic);
je32_to_cpu(ri->ino), je32_to_cpu(ri->version),
je32_to_cpu(ri->offset),
je32_to_cpu(ri->offset)+je32_to_cpu(ri->dsize));
pseudo_random += je32_to_cpu(ri->version);
if (crc != je32_to_cpu(rd->node_crc)) {
__func__, ofs, je32_to_cpu(rd->node_crc), crc);
if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rd->totlen)))))
pseudo_random += je32_to_cpu(rd->version);
if (crc != je32_to_cpu(rd->name_crc)) {
__func__, ofs, je32_to_cpu(rd->name_crc), crc);
fd->name, je32_to_cpu(rd->ino));
if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rd->totlen)))))
ic = jffs2_scan_make_ino_cache(c, je32_to_cpu(rd->pino));
PAD(je32_to_cpu(rd->totlen)), ic);
fd->version = je32_to_cpu(rd->version);
fd->ino = je32_to_cpu(rd->ino);
if (crc != je32_to_cpu(rx->node_crc)) {
ofs, je32_to_cpu(rx->node_crc), crc);
if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen))))
xid = je32_to_cpu(rx->xid);
version = je32_to_cpu(rx->version);
if (totlen != je32_to_cpu(rx->totlen)) {
ofs, je32_to_cpu(rx->totlen), totlen);
if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rx->totlen))))
xd->data_crc = je32_to_cpu(rx->data_crc);
if (crc != je32_to_cpu(rr->node_crc)) {
ofs, je32_to_cpu(rr->node_crc), crc);
if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(rr->totlen)))))
if (PAD(sizeof(struct jffs2_raw_xref)) != je32_to_cpu(rr->totlen)) {
ofs, je32_to_cpu(rr->totlen),
if ((err = jffs2_scan_dirty_space(c, jeb, je32_to_cpu(rr->totlen))))
ref->ino = je32_to_cpu(rr->ino);
ref->xid = je32_to_cpu(rr->xid);
ref->xseqno = je32_to_cpu(rr->xseqno);
jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(rr->totlen)), (void *)ref);
if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) {
sumptr = buf + je32_to_cpu(sm->offset);
sumlen = c->sector_size - je32_to_cpu(sm->offset);
if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) {
sumlen = c->sector_size - je32_to_cpu(sm->offset);
if (hdr_crc != je32_to_cpu(node->hdr_crc)) {
je32_to_cpu(node->totlen),
je32_to_cpu(node->hdr_crc),
if (ofs + je32_to_cpu(node->totlen) > jeb->offset + c->sector_size) {
ofs, je32_to_cpu(node->totlen));
if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen)))))
ofs += PAD(je32_to_cpu(node->totlen));
ofs += PAD(je32_to_cpu(node->totlen));
if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) {
je32_to_cpu(node->totlen), buf_len,
ofs += PAD(je32_to_cpu(node->totlen));
if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) {
je32_to_cpu(node->totlen), buf_len,
ofs += PAD(je32_to_cpu(node->totlen));
if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) {
je32_to_cpu(node->totlen), buf_len,
ofs += PAD(je32_to_cpu(node->totlen));
if (je32_to_cpu(node->totlen) != c->cleanmarker_size) {
ofs, je32_to_cpu(node->totlen),
jffs2_sum_add_padding_mem(s, je32_to_cpu(node->totlen));
if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen)))))
ofs += PAD(je32_to_cpu(node->totlen));
if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen)))))
ofs += PAD(je32_to_cpu(node->totlen));
if ((err = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(node->totlen)))))
ofs += PAD(je32_to_cpu(node->totlen));
jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(node->totlen)), NULL);
ofs += PAD(je32_to_cpu(node->totlen));
uint32_t crc, ino = je32_to_cpu(ri->ino);
c->summary->sum_padded += je32_to_cpu(node->u.totlen);
for (i=0; i<je32_to_cpu(summary->sum_num); i++) {
ino = je32_to_cpu(spi->inode);
jeb->offset + je32_to_cpu(spi->offset),
jeb->offset + je32_to_cpu(spi->offset) + je32_to_cpu(spi->totlen));
sum_link_node_ref(c, jeb, je32_to_cpu(spi->offset) | REF_UNCHECKED,
PAD(je32_to_cpu(spi->totlen)), ic);
*pseudo_random += je32_to_cpu(spi->version);
jeb->offset + je32_to_cpu(spd->offset),
jeb->offset + je32_to_cpu(spd->offset) + je32_to_cpu(spd->totlen));
je32_to_cpu(spd->offset));
je32_to_cpu(spd->offset),
ic = jffs2_scan_make_ino_cache(c, je32_to_cpu(spd->pino));
fd->raw = sum_link_node_ref(c, jeb, je32_to_cpu(spd->offset) | REF_UNCHECKED,
PAD(je32_to_cpu(spd->totlen)), ic);
fd->version = je32_to_cpu(spd->version);
fd->ino = je32_to_cpu(spd->ino);
*pseudo_random += je32_to_cpu(spd->version);
jeb->offset + je32_to_cpu(spx->offset),
jeb->offset + je32_to_cpu(spx->offset) + je32_to_cpu(spx->totlen),
je32_to_cpu(spx->xid), je32_to_cpu(spx->version));
xd = jffs2_setup_xattr_datum(c, je32_to_cpu(spx->xid),
je32_to_cpu(spx->version));
if (xd->version > je32_to_cpu(spx->version)) {
= sum_link_node_ref(c, jeb, je32_to_cpu(spx->offset) | REF_UNCHECKED,
PAD(je32_to_cpu(spx->totlen)), NULL);
xd->version = je32_to_cpu(spx->version);
sum_link_node_ref(c, jeb, je32_to_cpu(spx->offset) | REF_UNCHECKED,
PAD(je32_to_cpu(spx->totlen)), (void *)xd);
*pseudo_random += je32_to_cpu(spx->xid);
jeb->offset + je32_to_cpu(spr->offset),
jeb->offset + je32_to_cpu(spr->offset) +
sum_link_node_ref(c, jeb, je32_to_cpu(spr->offset) | REF_UNCHECKED,
if (je32_to_cpu(summary->hdr_crc) != crc) {
if (je32_to_cpu(summary->totlen) != sumsize) {
if (je32_to_cpu(summary->node_crc) != crc) {
if (je32_to_cpu(summary->sum_crc) != crc) {
if ( je32_to_cpu(summary->cln_mkr) ) {
if (je32_to_cpu(summary->cln_mkr) != c->cleanmarker_size) {
je32_to_cpu(summary->cln_mkr), c->cleanmarker_size);
if ((ret = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(summary->cln_mkr)))))
if ((ret = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(summary->cln_mkr)))))
je32_to_cpu(summary->cln_mkr), NULL);
je32_to_cpu(item->i.inode));
je32_to_cpu(item->d.ino));
je32_to_cpu(item->x.xid), je32_to_cpu(item->x.version));
frag = jffs2_lookup_node_frag(&f->fragtree, je32_to_cpu(node->i.offset));
if ((alloc_mode!=ALLOC_GC) && (je32_to_cpu(ri->version) < f->highest_version)) {
je32_to_cpu(ri->version), f->highest_version);
if ((je32_to_cpu(ri->dsize) >= PAGE_SIZE) ||
( ((je32_to_cpu(ri->offset)&(PAGE_SIZE-1))==0) &&
(je32_to_cpu(ri->dsize)+je32_to_cpu(ri->offset) == je32_to_cpu(ri->isize)))) {
fn->ofs = je32_to_cpu(ri->offset);
fn->size = je32_to_cpu(ri->dsize);
flash_ofs & ~3, flash_ofs & 3, je32_to_cpu(ri->dsize),
je32_to_cpu(ri->csize), je32_to_cpu(ri->node_crc),
je32_to_cpu(ri->data_crc), je32_to_cpu(ri->totlen));
je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino),
je32_to_cpu(rd->name_crc));
D1(if(je32_to_cpu(rd->hdr_crc) != crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)) {
je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino),
je32_to_cpu(rd->name_crc));
fd->version = je32_to_cpu(rd->version);
fd->ino = je32_to_cpu(rd->ino);
if ((alloc_mode!=ALLOC_GC) && (je32_to_cpu(rd->version) < f->highest_version)) {
je32_to_cpu(rd->version), f->highest_version);
fd->version = je32_to_cpu(rd->version);
(alloc_mode==ALLOC_GC)?0:je32_to_cpu(rd->pino));
ri->isize = cpu_to_je32(max(je32_to_cpu(ri->isize), offset + datalen));
D1(if(je32_to_cpu(ri->hdr_crc) != crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)) {
if (je32_to_cpu(ri->totlen) != sizeof(*ri) + datalen) {
__func__, je32_to_cpu(ri->totlen),
if (crc != je32_to_cpu(rx.node_crc)) {
offset, je32_to_cpu(rx.hdr_crc), crc);
|| je32_to_cpu(rx.totlen) != totlen
|| je32_to_cpu(rx.xid) != xd->xid
|| je32_to_cpu(rx.version) != xd->version) {
je32_to_cpu(rx.totlen), totlen,
je32_to_cpu(rx.xid), xd->xid,
je32_to_cpu(rx.version), xd->version);
xd->data_crc = je32_to_cpu(rx.data_crc);
if (crc != je32_to_cpu(rr.node_crc)) {
offset, je32_to_cpu(rr.node_crc), crc);
|| je32_to_cpu(rr.totlen) != PAD(sizeof(rr))) {
je32_to_cpu(rr.totlen), PAD(sizeof(rr)));
ref->ino = je32_to_cpu(rr.ino);
ref->xid = je32_to_cpu(rr.xid);
ref->xseqno = je32_to_cpu(rr.xseqno);