]> git.sesse.net Git - bcachefs-tools-debian/blob - libbcachefs/compress.h
Update bcachefs sources to 7c0fe6f104 bcachefs: Fix bch2_fsck_ask_yn()
[bcachefs-tools-debian] / libbcachefs / compress.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_COMPRESS_H
3 #define _BCACHEFS_COMPRESS_H
4
5 #include "extents_types.h"
6
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);
13
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 *);
17
18 #endif /* _BCACHEFS_COMPRESS_H */