]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/btrfs/compression.h
Merge tag 'media/v4.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[mirror_ubuntu-bionic-kernel.git] / fs / btrfs / compression.h
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);