Home
last modified time | relevance | path

Searched refs:node_crc (Results 1 – 14 of 14) sorted by relevance

/linux/include/uapi/linux/
H A Djffs2.h124 jint32_t node_crc; member
157 jint32_t node_crc; /* CRC for the raw inode (excluding data) */ member
172 jint32_t node_crc; member
185 jint32_t node_crc; member
198 jint32_t node_crc; /* node crc */ member
/linux/fs/jffs2/
H A Dwrite.c106 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_write_dnode()
195 je32_to_cpu(ri->csize), je32_to_cpu(ri->node_crc), in jffs2_write_dnode()
265 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_write_dirent()
388 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_write_inode_range()
463 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_do_create()
521 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_do_create()
584 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_do_unlink()
703 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_do_link()
H A Dread.c54 ref_offset(fd->raw), je32_to_cpu(ri->node_crc), in jffs2_read_dnode()
57 if (crc != je32_to_cpu(ri->node_crc)) { in jffs2_read_dnode()
59 je32_to_cpu(ri->node_crc), crc, ref_offset(fd->raw)); in jffs2_read_dnode()
H A Dgc.c644 if (je32_to_cpu(node->i.node_crc) != crc) { in jffs2_garbage_collect_pristine()
646 ref_offset(raw), je32_to_cpu(node->i.node_crc), in jffs2_garbage_collect_pristine()
664 if (je32_to_cpu(node->d.node_crc) != crc) { in jffs2_garbage_collect_pristine()
667 je32_to_cpu(node->d.node_crc), crc); in jffs2_garbage_collect_pristine()
831 ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); in jffs2_garbage_collect_metadata()
874 rd.node_crc = cpu_to_je32(crc32(0, &rd, sizeof(rd)-8)); in jffs2_garbage_collect_dirent()
1052 if (crc != je32_to_cpu(ri.node_crc)) { in jffs2_garbage_collect_hole()
1055 je32_to_cpu(ri.node_crc), crc); in jffs2_garbage_collect_hole()
1099 ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); in jffs2_garbage_collect_hole()
1381 ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); in jffs2_garbage_collect_dnode()
H A Dscan.c339 if (crc != je32_to_cpu(rx->node_crc)) { in jffs2_scan_xattr_node()
341 ofs, je32_to_cpu(rx->node_crc), crc); in jffs2_scan_xattr_node()
395 if (crc != je32_to_cpu(rr->node_crc)) { in jffs2_scan_xref_node()
397 ofs, je32_to_cpu(rr->node_crc), crc); in jffs2_scan_xref_node()
1010 if (crc != je32_to_cpu(ri->node_crc)) { in jffs2_scan_inode_node()
1012 __func__, ofs, je32_to_cpu(ri->node_crc), crc); in jffs2_scan_inode_node()
1060 if (crc != je32_to_cpu(rd->node_crc)) { in jffs2_scan_dirent_node()
1062 __func__, ofs, je32_to_cpu(rd->node_crc), crc); in jffs2_scan_dirent_node()
H A Ddir.c342 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_symlink()
413 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_symlink()
502 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_mkdir()
558 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_mkdir()
678 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_mknod()
737 rd->node_crc = cpu_to_je32(crc32(0, rd, sizeof(*rd)-8)); in jffs2_mknod()
H A Dreadinode.c597 if (unlikely(crc != je32_to_cpu(rd->node_crc))) { in read_direntry()
599 ref_offset(ref), je32_to_cpu(rd->node_crc), crc); in read_direntry()
685 ref_offset(ref), je32_to_cpu(rd->node_crc), crc); in read_direntry()
726 if (unlikely(crc != je32_to_cpu(rd->node_crc))) { in read_dnode()
728 ref_offset(ref), je32_to_cpu(rd->node_crc), crc); in read_dnode()
1230 if (crc != je32_to_cpu(latest_node->node_crc)) { in jffs2_do_read_inode_internal()
H A Ddebug.c830 printk(JFFS2_DBG "node_crc:\t%#08x\n", je32_to_cpu(node.i.node_crc)); in __jffs2_dbg_dump_node()
833 if (crc != je32_to_cpu(node.i.node_crc)) { in __jffs2_dbg_dump_node()
848 printk(JFFS2_DBG "node_crc:\t%#08x\n", je32_to_cpu(node.d.node_crc)); in __jffs2_dbg_dump_node()
855 if (crc != je32_to_cpu(node.d.node_crc)) { in __jffs2_dbg_dump_node()
H A Dxattr.c155 if (crc != je32_to_cpu(rx.node_crc)) { in do_verify_xattr_datum()
315 rx.node_crc = cpu_to_je32(crc32(0, &rx, sizeof(struct jffs2_raw_xattr) - 4)); in save_xattr_datum()
467 if (crc != je32_to_cpu(rr.node_crc)) { in verify_xattr_ref()
469 offset, je32_to_cpu(rr.node_crc), crc); in verify_xattr_ref()
529 rr.node_crc = cpu_to_je32(crc32(0, &rr, sizeof(rr) - 4)); in save_xattr_ref()
H A Dfile.c170 ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); in jffs2_write_begin()
H A Dsummary.c604 if (je32_to_cpu(summary->node_crc) != crc) { in jffs2_sum_scan_sumnode()
810 isum.node_crc = cpu_to_je32(crc32(0, &isum, sizeof(isum) - 8)); in jffs2_sum_write_data()
H A Dfs.c133 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_do_setattr()
/linux/fs/ubifs/
H A Dio.c248 uint32_t crc, node_crc, magic; in ubifs_check_node() local
288 node_crc = le32_to_cpu(ch->crc); in ubifs_check_node()
289 if (crc != node_crc) { in ubifs_check_node()
292 crc, node_crc); in ubifs_check_node()
H A Dtnc.c486 uint32_t crc, node_crc; in try_read_node() local
510 node_crc = le32_to_cpu(ch->crc); in try_read_node()
511 if (crc != node_crc) in try_read_node()