btrfs: move btrfs_compression_type to compression.h
authorAnand Jain <anand.jain@oracle.com>
Thu, 10 Mar 2016 09:26:59 +0000 (17:26 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 11 Mar 2016 16:12:46 +0000 (17:12 +0100)
So that its better organized.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
13 files changed:
fs/btrfs/check-integrity.c
fs/btrfs/compression.h
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent_map.c
fs/btrfs/file-item.c
fs/btrfs/file.c
fs/btrfs/ioctl.c
fs/btrfs/ordered-data.c
fs/btrfs/props.c
fs/btrfs/send.c
fs/btrfs/tests/inode-tests.c
fs/btrfs/tree-log.c

index 60fc45f3a361cf91a883d7c584230935a8029b37..9d226b5d6358df6599b9b0194bb652241815924c 100644 (file)
 #include "locking.h"
 #include "check-integrity.h"
 #include "rcu-string.h"
+#include "compression.h"
 
 #define BTRFSIC_BLOCK_HASHTABLE_SIZE 0x10000
 #define BTRFSIC_BLOCK_LINK_HASHTABLE_SIZE 0x10000
index 13a4dc0436c9d3072b401312b3d3bf82a789ae4e..f49d8b8c0f00cf6fb41a988681ec4c89615a9ae5 100644 (file)
@@ -48,6 +48,15 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
 void btrfs_clear_biovec_end(struct bio_vec *bvec, int vcnt,
                                   unsigned long pg_index,
                                   unsigned long pg_offset);
+
+enum btrfs_compression_type {
+       BTRFS_COMPRESS_NONE  = 0,
+       BTRFS_COMPRESS_ZLIB  = 1,
+       BTRFS_COMPRESS_LZO   = 2,
+       BTRFS_COMPRESS_TYPES = 2,
+       BTRFS_COMPRESS_LAST  = 3,
+};
+
 struct btrfs_compress_op {
        struct list_head *(*alloc_workspace)(void);
 
index b69ad1305b71ac6b3f9625c0b71d2d3bd5e5d26a..0ef28fd2bd278e40f0c6f952a5a3599d521cabd8 100644 (file)
@@ -718,14 +718,6 @@ struct btrfs_timespec {
        __le32 nsec;
 } __attribute__ ((__packed__));
 
-enum btrfs_compression_type {
-       BTRFS_COMPRESS_NONE  = 0,
-       BTRFS_COMPRESS_ZLIB  = 1,
-       BTRFS_COMPRESS_LZO   = 2,
-       BTRFS_COMPRESS_TYPES = 2,
-       BTRFS_COMPRESS_LAST  = 3,
-};
-
 struct btrfs_inode_item {
        /* nfs style generation number */
        __le64 generation;
index a998ef15ec6d216b8b589efb32047f0ca3f20266..53525a54608b9bfc87a50c143448346e19cc9c4e 100644 (file)
@@ -50,6 +50,7 @@
 #include "raid56.h"
 #include "sysfs.h"
 #include "qgroup.h"
+#include "compression.h"
 
 #ifdef CONFIG_X86
 #include <asm/cpufeature.h>
index cdbadeaef2028351cbca7990234d71a1d4334c63..cca21ff6553b5ed6937ffbcbf4356777331b5bfc 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/hardirq.h>
 #include "ctree.h"
 #include "extent_map.h"
+#include "compression.h"
 
 
 static struct kmem_cache *extent_map_cache;
index 1c50a7b09b4e4bd87e88eef65b9b3b32401083e8..763fd170ff1656fedce3dd37fc68a492d7c8f711 100644 (file)
@@ -25,6 +25,7 @@
 #include "transaction.h"
 #include "volumes.h"
 #include "print-tree.h"
+#include "compression.h"
 
 #define __MAX_CSUM_ITEMS(r, size) ((unsigned long)(((BTRFS_LEAF_DATA_SIZE(r) - \
                                   sizeof(struct btrfs_item) * 2) / \
index d23d10024cf0adae11352b7a4685132a5c1f8c7c..dba5de6cdc8a837328e95aafff7aa96f7981b66d 100644 (file)
@@ -41,6 +41,7 @@
 #include "locking.h"
 #include "volumes.h"
 #include "qgroup.h"
+#include "compression.h"
 
 static struct kmem_cache *btrfs_inode_defrag_cachep;
 /*
index 7a1ffacd314c32e617a54118fa9bc97103551dbe..053e677839fef37121a6a958aa02c883a20590da 100644 (file)
@@ -60,6 +60,7 @@
 #include "sysfs.h"
 #include "qgroup.h"
 #include "tree-log.h"
+#include "compression.h"
 
 #ifdef CONFIG_64BIT
 /* If we have a 32-bit userspace and 64-bit kernel, then the UAPI
index 988eb1513aa54506e8005ef646d994aff8a9d318..86e1688c13b2386fbaf3f3f8a406f2fe0b585eb1 100644 (file)
@@ -25,6 +25,7 @@
 #include "btrfs_inode.h"
 #include "extent_io.h"
 #include "disk-io.h"
+#include "compression.h"
 
 static struct kmem_cache *btrfs_ordered_extent_cache;
 
index f9e60231f6854545d514d8df53b8ba21be92762e..36992128c7466cab65b1d8a9b71e670f32df9ac5 100644 (file)
@@ -22,6 +22,7 @@
 #include "hash.h"
 #include "transaction.h"
 #include "xattr.h"
+#include "compression.h"
 
 #define BTRFS_PROP_HANDLERS_HT_BITS 8
 static DEFINE_HASHTABLE(prop_handlers_ht, BTRFS_PROP_HANDLERS_HT_BITS);
index d2e29925f1da3bc6f3d4ce3846733cd058a301bf..19b7bf4284ee9486964f1929930bd9e23d43a607 100644 (file)
@@ -34,6 +34,7 @@
 #include "disk-io.h"
 #include "btrfs_inode.h"
 #include "transaction.h"
+#include "compression.h"
 
 static int g_verbose = 0;
 
index e2d3da02deee4b73b9f9c96ed1e6cc9f4c1b5700..863a6a3af1f8869c8b4392dbb5af677ed9bfa3fc 100644 (file)
@@ -22,6 +22,7 @@
 #include "../disk-io.h"
 #include "../extent_io.h"
 #include "../volumes.h"
+#include "../compression.h"
 
 static void insert_extent(struct btrfs_root *root, u64 start, u64 len,
                          u64 ram_bytes, u64 offset, u64 disk_bytenr,
index 9d2e8ecc5382a100278348a2de3fe2fc1032ce11..eafdb965c206b8375527f23ba831719ccadb4d83 100644 (file)
@@ -26,6 +26,7 @@
 #include "print-tree.h"
 #include "backref.h"
 #include "hash.h"
+#include "compression.h"
 
 /* magic values for the inode_only field in btrfs_log_inode:
  *