btrfs: reduce compressed_bio members' types
[sfrench/cifs-2.6.git] / fs / btrfs / compression.h
index 8001b700ea3ae30a63e5ce151b6865db11dee865..00d8439048c9a67c98e17a3580d9f50bb0839785 100644 (file)
@@ -31,6 +31,9 @@ struct compressed_bio {
        /* 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;
 
@@ -40,20 +43,17 @@ struct compressed_bio {
        /* 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 */