]> git.sesse.net Git - bcachefs-tools-debian/blob - libbcachefs/compress.h
Update bcachefs sources to e82e656279 bcachefs: Cleanups for building in userspace
[bcachefs-tools-debian] / libbcachefs / compress.h
1 #ifndef _BCACHEFS_COMPRESS_H
2 #define _BCACHEFS_COMPRESS_H
3
4 int bch2_bio_uncompress_inplace(struct bch_fs *, struct bio *,
5                                unsigned, struct bch_extent_crc128);
6 int bch2_bio_uncompress(struct bch_fs *, struct bio *, struct bio *,
7                        struct bvec_iter, struct bch_extent_crc128);
8 void bch2_bio_compress(struct bch_fs *, struct bio *, size_t *,
9                       struct bio *, size_t *, unsigned *);
10
11 int bch2_check_set_has_compressed_data(struct bch_fs *, unsigned);
12 void bch2_fs_compress_exit(struct bch_fs *);
13 int bch2_fs_compress_init(struct bch_fs *);
14
15 #endif /* _BCACHEFS_COMPRESS_H */