diff options
Diffstat (limited to 'fs/btrfs/compression.h')
-rw-r--r-- | fs/btrfs/compression.h | 3 |
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 | ||
67 | static inline unsigned int btrfs_compress_type(unsigned int type_level) | 67 | static inline unsigned int btrfs_compress_type(unsigned int type_level) |
@@ -173,6 +173,7 @@ extern const struct btrfs_compress_op btrfs_lzo_compress; | |||
173 | extern const struct btrfs_compress_op btrfs_zstd_compress; | 173 | extern const struct btrfs_compress_op btrfs_zstd_compress; |
174 | 174 | ||
175 | const char* btrfs_compress_type2str(enum btrfs_compression_type type); | 175 | const char* btrfs_compress_type2str(enum btrfs_compression_type type); |
176 | bool btrfs_compress_is_valid_type(const char *str, size_t len); | ||
176 | 177 | ||
177 | int btrfs_compress_heuristic(struct inode *inode, u64 start, u64 end); | 178 | int btrfs_compress_heuristic(struct inode *inode, u64 start, u64 end); |
178 | 179 | ||