]> git.sesse.net Git - bcachefs-tools-debian/blob - libbcachefs/compress.h
Update bcachefs sources to e57b5958cf bcachefs: fix for building in userspace
[bcachefs-tools-debian] / libbcachefs / compress.h
1 #ifndef _BCACHEFS_COMPRESS_H
2 #define _BCACHEFS_COMPRESS_H
3
4 #include "extents_types.h"
5
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);
12
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 *);
16
17 #endif /* _BCACHEFS_COMPRESS_H */