]> git.sur5r.net Git - u-boot/blobdiff - fs/jffs2/jffs2_private.h
PPC: Change lib_ppc/bat_rw.c to use high bats
[u-boot] / fs / jffs2 / jffs2_private.h
index 65ca6eb98f239ab26599ac2a6423b6a04c48d145..46ed644e4d4a6dd795ae70a639484447f660751c 100644 (file)
@@ -85,4 +85,16 @@ inode_crc(struct jffs2_raw_inode *node)
        }
 }
 
+static inline int
+data_crc(struct jffs2_raw_inode *node)
+{
+       if (node->data_crc != crc32_no_comp(0, (unsigned char *)
+                                           ((int) &node->node_crc + sizeof (node->node_crc)),
+                                            node->csize)) {
+               return 0;
+       } else {
+               return 1;
+       }
+}
+
 #endif /* jffs2_private.h */