]> err.no Git - linux-2.6/blobdiff - fs/jffs2/compr_rubin.c
[JFFS2] Fix readinode failure when read_dnode() detects CRC failure.
[linux-2.6] / fs / jffs2 / compr_rubin.c
index 1f3a4410523bee934af25f95693c9ec93c7f8bcf..ea0431e047d5389aeb55ee8f54d904d1382cfd27 100644 (file)
 #define LOWER_BITS_RUBIN   ((((long) 1)<<(RUBIN_REG_SIZE-1))-1)
 
 
-struct rubin_state {
-       unsigned long p;
-       unsigned long q;
-       unsigned long rec_q;
-       long bit_number;
-       struct pushpull pp;
-       int bit_divider;
-       int bits[8];
-};
-
 #define BIT_DIVIDER_MIPS 1043
 static int bits_mips[8] = { 277,249,290,267,229,341,212,241}; /* mips32 */
 
@@ -43,6 +33,15 @@ struct pushpull {
        unsigned int reserve;
 };
 
+struct rubin_state {
+       unsigned long p;
+       unsigned long q;
+       unsigned long rec_q;
+       long bit_number;
+       struct pushpull pp;
+       int bit_divider;
+       int bits[8];
+};
 
 static inline void init_pushpull(struct pushpull *pp, char *buf, unsigned buflen, unsigned ofs, unsigned reserve)
 {