aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
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,
48void btrfs_clear_biovec_end(struct bio_vec *bvec, int vcnt, 48void btrfs_clear_biovec_end(struct bio_vec *bvec, int vcnt,
49 unsigned long pg_index, 49 unsigned long pg_index,
50 unsigned long pg_offset); 50 unsigned long pg_offset);
51
52enum 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
51struct btrfs_compress_op { 60struct btrfs_compress_op {
52 struct list_head *(*alloc_workspace)(void); 61 struct list_head *(*alloc_workspace)(void);
53 62