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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index da20755ebf21..0868cc554f14 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -34,6 +34,8 @@
34/* Maximum size of data before compression */ 34/* Maximum size of data before compression */
35#define BTRFS_MAX_UNCOMPRESSED (SZ_128K) 35#define BTRFS_MAX_UNCOMPRESSED (SZ_128K)
36 36
37#define BTRFS_ZLIB_DEFAULT_LEVEL 3
38
37struct compressed_bio { 39struct compressed_bio {
38 /* number of bios pending for this compressed extent */ 40 /* number of bios pending for this compressed extent */
39 refcount_t pending_bios; 41 refcount_t pending_bios;
@@ -91,7 +93,8 @@ blk_status_t btrfs_submit_compressed_write(struct inode *inode, u64 start,
91 unsigned long len, u64 disk_start, 93 unsigned long len, u64 disk_start,
92 unsigned long compressed_len, 94 unsigned long compressed_len,
93 struct page **compressed_pages, 95 struct page **compressed_pages,
94 unsigned long nr_pages); 96 unsigned long nr_pages,
97 unsigned int write_flags);
95blk_status_t btrfs_submit_compressed_read(struct inode *inode, struct bio *bio, 98blk_status_t btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
96 int mirror_num, unsigned long bio_flags); 99 int mirror_num, unsigned long bio_flags);
97 100