]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/compress.h
Update bcachefs sources to 25de2b00dc bcachefs: Change check for invalid key types
[bcachefs-tools-debian] / libbcachefs / compress.h
index ad1ba25defeccd3578a66dd838a932506a6ddf0a..4bab1f61b3b50bddbc3978f0a25840abd87d154d 100644 (file)
@@ -1,12 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 #ifndef _BCACHEFS_COMPRESS_H
 #define _BCACHEFS_COMPRESS_H
 
+#include "extents_types.h"
+
 int bch2_bio_uncompress_inplace(struct bch_fs *, struct bio *,
-                              unsigned, struct bch_extent_crc128);
+                               struct bch_extent_crc_unpacked *);
 int bch2_bio_uncompress(struct bch_fs *, struct bio *, struct bio *,
-                      struct bvec_iter, struct bch_extent_crc128);
-void bch2_bio_compress(struct bch_fs *, struct bio *, size_t *,
-                     struct bio *, size_t *, unsigned *);
+                      struct bvec_iter, struct bch_extent_crc_unpacked);
+unsigned bch2_bio_compress(struct bch_fs *, struct bio *, size_t *,
+                          struct bio *, size_t *, unsigned);
 
 int bch2_check_set_has_compressed_data(struct bch_fs *, unsigned);
 void bch2_fs_compress_exit(struct bch_fs *);