aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorAnand Jain <[email protected]>2016-03-10 09:26:59 +0000
committerDavid Sterba <[email protected]>2016-03-11 16:12:46 +0000
commitebb8765b2ded869b75bf5154b048119eb52571f7 (patch)
tree67522464742035b95df955eea7ae906c12ca54e9 /fs/btrfs/compression.h
parentbtrfs: rename btrfs_print_info to btrfs_print_mod_info (diff)
downloadkernel-ebb8765b2ded869b75bf5154b048119eb52571f7.tar.gz
kernel-ebb8765b2ded869b75bf5154b048119eb52571f7.zip
btrfs: move btrfs_compression_type to compression.h
So that its better organized. Signed-off-by: Anand Jain <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
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 13a4dc0436c9..f49d8b8c0f00 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);