summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2016-03-10 17:26:59 +0800
committerDavid Sterba <dsterba@suse.com>2016-03-11 17:12:46 +0100
commitebb8765b2ded869b75bf5154b048119eb52571f7 (patch)
tree67522464742035b95df955eea7ae906c12ca54e9 /fs/btrfs/compression.h
parent8ae1af3cd127d507dcb1acf67f16120f20632aed (diff)
downloadop-kernel-dev-ebb8765b2ded869b75bf5154b048119eb52571f7.zip
op-kernel-dev-ebb8765b2ded869b75bf5154b048119eb52571f7.tar.gz
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>
Diffstat (limited to 'fs/btrfs/compression.h')
-rw-r--r--fs/btrfs/compression.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index 13a4dc0..f49d8b8 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -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);
OpenPOWER on IntegriCloud