Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

btrfs: move btrfs_compression_type to compression.h

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>

authored by

Anand Jain and committed by
David Sterba
ebb8765b 8ae1af3c

+20 -8
+1
fs/btrfs/check-integrity.c
··· 106 106 #include "locking.h" 107 107 #include "check-integrity.h" 108 108 #include "rcu-string.h" 109 + #include "compression.h" 109 110 110 111 #define BTRFSIC_BLOCK_HASHTABLE_SIZE 0x10000 111 112 #define BTRFSIC_BLOCK_LINK_HASHTABLE_SIZE 0x10000
+9
fs/btrfs/compression.h
··· 48 48 void btrfs_clear_biovec_end(struct bio_vec *bvec, int vcnt, 49 49 unsigned long pg_index, 50 50 unsigned long pg_offset); 51 + 52 + enum btrfs_compression_type { 53 + BTRFS_COMPRESS_NONE = 0, 54 + BTRFS_COMPRESS_ZLIB = 1, 55 + BTRFS_COMPRESS_LZO = 2, 56 + BTRFS_COMPRESS_TYPES = 2, 57 + BTRFS_COMPRESS_LAST = 3, 58 + }; 59 + 51 60 struct btrfs_compress_op { 52 61 struct list_head *(*alloc_workspace)(void); 53 62
-8
fs/btrfs/ctree.h
··· 718 718 __le32 nsec; 719 719 } __attribute__ ((__packed__)); 720 720 721 - enum btrfs_compression_type { 722 - BTRFS_COMPRESS_NONE = 0, 723 - BTRFS_COMPRESS_ZLIB = 1, 724 - BTRFS_COMPRESS_LZO = 2, 725 - BTRFS_COMPRESS_TYPES = 2, 726 - BTRFS_COMPRESS_LAST = 3, 727 - }; 728 - 729 721 struct btrfs_inode_item { 730 722 /* nfs style generation number */ 731 723 __le64 generation;
+1
fs/btrfs/disk-io.c
··· 50 50 #include "raid56.h" 51 51 #include "sysfs.h" 52 52 #include "qgroup.h" 53 + #include "compression.h" 53 54 54 55 #ifdef CONFIG_X86 55 56 #include <asm/cpufeature.h>
+1
fs/btrfs/extent_map.c
··· 4 4 #include <linux/hardirq.h> 5 5 #include "ctree.h" 6 6 #include "extent_map.h" 7 + #include "compression.h" 7 8 8 9 9 10 static struct kmem_cache *extent_map_cache;
+1
fs/btrfs/file-item.c
··· 25 25 #include "transaction.h" 26 26 #include "volumes.h" 27 27 #include "print-tree.h" 28 + #include "compression.h" 28 29 29 30 #define __MAX_CSUM_ITEMS(r, size) ((unsigned long)(((BTRFS_LEAF_DATA_SIZE(r) - \ 30 31 sizeof(struct btrfs_item) * 2) / \
+1
fs/btrfs/file.c
··· 41 41 #include "locking.h" 42 42 #include "volumes.h" 43 43 #include "qgroup.h" 44 + #include "compression.h" 44 45 45 46 static struct kmem_cache *btrfs_inode_defrag_cachep; 46 47 /*
+1
fs/btrfs/ioctl.c
··· 60 60 #include "sysfs.h" 61 61 #include "qgroup.h" 62 62 #include "tree-log.h" 63 + #include "compression.h" 63 64 64 65 #ifdef CONFIG_64BIT 65 66 /* If we have a 32-bit userspace and 64-bit kernel, then the UAPI
+1
fs/btrfs/ordered-data.c
··· 25 25 #include "btrfs_inode.h" 26 26 #include "extent_io.h" 27 27 #include "disk-io.h" 28 + #include "compression.h" 28 29 29 30 static struct kmem_cache *btrfs_ordered_extent_cache; 30 31
+1
fs/btrfs/props.c
··· 22 22 #include "hash.h" 23 23 #include "transaction.h" 24 24 #include "xattr.h" 25 + #include "compression.h" 25 26 26 27 #define BTRFS_PROP_HANDLERS_HT_BITS 8 27 28 static DEFINE_HASHTABLE(prop_handlers_ht, BTRFS_PROP_HANDLERS_HT_BITS);
+1
fs/btrfs/send.c
··· 34 34 #include "disk-io.h" 35 35 #include "btrfs_inode.h" 36 36 #include "transaction.h" 37 + #include "compression.h" 37 38 38 39 static int g_verbose = 0; 39 40
+1
fs/btrfs/tests/inode-tests.c
··· 22 22 #include "../disk-io.h" 23 23 #include "../extent_io.h" 24 24 #include "../volumes.h" 25 + #include "../compression.h" 25 26 26 27 static void insert_extent(struct btrfs_root *root, u64 start, u64 len, 27 28 u64 ram_bytes, u64 offset, u64 disk_bytenr,
+1
fs/btrfs/tree-log.c
··· 26 26 #include "print-tree.h" 27 27 #include "backref.h" 28 28 #include "hash.h" 29 + #include "compression.h" 29 30 30 31 /* magic values for the inode_only field in btrfs_log_inode: 31 32 *