| #ifdef CFG_JFFS2_SORT_FRAGMENTS |
| int (*listCompare)(struct b_node *new, struct b_node *node); |
| struct mem_block *listMemBase; |
| struct b_compr_info compr_info[JFFS2_NUM_COMPR]; |
| hdr_crc(struct jffs2_unknown_node *node) |
| u32 crc = crc32_no_comp(0, (unsigned char *)node, sizeof(struct jffs2_unknown_node) - 4); |
| /* what's the semantics of this? why is this here? */ |
| u32 crc = crc32_no_comp(~0, (unsigned char *)node, sizeof(struct jffs2_unknown_node) - 4); |
| if (node->hdr_crc != crc) { |
| dirent_crc(struct jffs2_raw_dirent *node) |
| if (node->node_crc != crc32_no_comp(0, (unsigned char *)node, sizeof(struct jffs2_raw_dirent) - 8)) { |
| dirent_name_crc(struct jffs2_raw_dirent *node) |
| if (node->name_crc != crc32_no_comp(0, (unsigned char *)&(node->name), node->nsize)) { |
| inode_crc(struct jffs2_raw_inode *node) |
| if (node->node_crc != crc32_no_comp(0, (unsigned char *)node, sizeof(struct jffs2_raw_inode) - 8)) { |
| #endif /* jffs2_private.h */ |