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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index 9976fe0f7526..2035b8eb1290 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -61,7 +61,7 @@ struct compressed_bio {
61 * the start of a variable length array of checksums only 61 * the start of a variable length array of checksums only
62 * used by reads 62 * used by reads
63 */ 63 */
64 u32 sums; 64 u8 sums[];
65}; 65};
66 66
67static inline unsigned int btrfs_compress_type(unsigned int type_level) 67static inline unsigned int btrfs_compress_type(unsigned int type_level)
@@ -173,6 +173,7 @@ extern const struct btrfs_compress_op btrfs_lzo_compress;
173extern const struct btrfs_compress_op btrfs_zstd_compress; 173extern const struct btrfs_compress_op btrfs_zstd_compress;
174 174
175const char* btrfs_compress_type2str(enum btrfs_compression_type type); 175const char* btrfs_compress_type2str(enum btrfs_compression_type type);
176bool btrfs_compress_is_valid_type(const char *str, size_t len);
176 177
177int btrfs_compress_heuristic(struct inode *inode, u64 start, u64 end); 178int btrfs_compress_heuristic(struct inode *inode, u64 start, u64 end);
178 179