bcachefs: Simplify hash table checks
[linux-block.git] / fs / bcachefs / compress.h
CommitLineData
1c6fdbd8
KO
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _BCACHEFS_COMPRESS_H
3#define _BCACHEFS_COMPRESS_H
4
5#include "extents_types.h"
6
7int bch2_bio_uncompress_inplace(struct bch_fs *, struct bio *,
8 struct bch_extent_crc_unpacked *);
9int bch2_bio_uncompress(struct bch_fs *, struct bio *, struct bio *,
10 struct bvec_iter, struct bch_extent_crc_unpacked);
11unsigned bch2_bio_compress(struct bch_fs *, struct bio *, size_t *,
12 struct bio *, size_t *, unsigned);
13
14int bch2_check_set_has_compressed_data(struct bch_fs *, unsigned);
15void bch2_fs_compress_exit(struct bch_fs *);
16int bch2_fs_compress_init(struct bch_fs *);
17
18#endif /* _BCACHEFS_COMPRESS_H */