1 #ifndef _BCACHEFS_COMPRESS_H
2 #define _BCACHEFS_COMPRESS_H
4 #include "extents_types.h"
6 int bch2_bio_uncompress_inplace(struct bch_fs *, struct bio *,
7 struct bch_extent_crc_unpacked *);
8 int bch2_bio_uncompress(struct bch_fs *, struct bio *, struct bio *,
9 struct bvec_iter, struct bch_extent_crc_unpacked);
10 unsigned bch2_bio_compress(struct bch_fs *, struct bio *, size_t *,
11 struct bio *, size_t *, unsigned);
13 int bch2_check_set_has_compressed_data(struct bch_fs *, unsigned);
14 void bch2_fs_compress_exit(struct bch_fs *);
15 int bch2_fs_compress_init(struct bch_fs *);
17 #endif /* _BCACHEFS_COMPRESS_H */