]> git.sesse.net Git - bcachefs-tools-debian/blob - libbcache/compress.h
bcache in userspace; userspace fsck
[bcachefs-tools-debian] / libbcache / compress.h
1 #ifndef _BCACHE_COMPRESS_H
2 #define _BCACHE_COMPRESS_H
3
4 int bch_bio_uncompress_inplace(struct cache_set *, struct bio *,
5                                unsigned, struct bch_extent_crc64);
6 int bch_bio_uncompress(struct cache_set *, struct bio *, struct bio *,
7                        struct bvec_iter, struct bch_extent_crc64);
8 void bch_bio_compress(struct cache_set *, struct bio *, size_t *,
9                       struct bio *, size_t *, unsigned *);
10
11 void bch_compress_free(struct cache_set *);
12 int bch_compress_init(struct cache_set *);
13
14 #endif /* _BCACHE_COMPRESS_H */