}
                if (bytes_left < PAGE_SIZE) {
                        btrfs_info(fs_info,
-                                       "bytes left %lu compress len %lu nr %lu",
+                                       "bytes left %lu compress len %u nr %u",
                               bytes_left, cb->compressed_len, cb->nr_pages);
                }
                bytes_left -= PAGE_SIZE;
 
        /* number of bios pending for this compressed extent */
        refcount_t pending_bios;
 
+       /* Number of compressed pages in the array */
+       unsigned int nr_pages;
+
        /* the pages with the compressed data on them */
        struct page **compressed_pages;
 
        /* starting offset in the inode for our pages */
        u64 start;
 
-       /* number of bytes in the inode we're working on */
-       unsigned long len;
-
-       /* number of bytes on disk */
-       unsigned long compressed_len;
+       /* Number of bytes in the inode we're working on */
+       unsigned int len;
 
-       /* the compression algorithm for this bio */
-       int compress_type;
+       /* Number of bytes on disk */
+       unsigned int compressed_len;
 
-       /* number of compressed pages in the array */
-       unsigned long nr_pages;
+       /* The compression algorithm for this bio */
+       u8 compress_type;
 
        /* IO errors */
-       int errors;
+       u8 errors;
        int mirror_num;
 
        /* for reads, this is the bio we are copying the data into */