1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_COMPRESS_H
3 #define _BCACHEFS_COMPRESS_H
5 #include "extents_types.h"
7 int bch2_bio_uncompress_inplace(struct bch_fs *, struct bio *,
8 struct bch_extent_crc_unpacked *);
9 int bch2_bio_uncompress(struct bch_fs *, struct bio *, struct bio *,
10 struct bvec_iter, struct bch_extent_crc_unpacked);
11 unsigned bch2_bio_compress(struct bch_fs *, struct bio *, size_t *,
12 struct bio *, size_t *, unsigned);
14 int bch2_check_set_has_compressed_data(struct bch_fs *, unsigned);
15 void bch2_fs_compress_exit(struct bch_fs *);
16 int bch2_fs_compress_init(struct bch_fs *);
18 #endif /* _BCACHEFS_COMPRESS_H */