blob: 0cd3575afa1d0b68f6845dd7bebd4e041889b4f1 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Kent Overstreet65d45232013-12-20 17:22:05 -08002#ifndef _BCACHE_EXTENTS_H
3#define _BCACHE_EXTENTS_H
4
5extern const struct btree_keys_ops bch_btree_keys_ops;
6extern const struct btree_keys_ops bch_extent_keys_ops;
7
8struct bkey;
9struct cache_set;
10
Kent Overstreetdc9d98d2013-12-17 23:47:33 -080011void bch_extent_to_text(char *, size_t, const struct bkey *);
Kent Overstreet65d45232013-12-20 17:22:05 -080012bool __bch_btree_ptr_invalid(struct cache_set *, const struct bkey *);
Kent Overstreet9aa61a92014-04-10 17:58:49 -070013bool __bch_extent_invalid(struct cache_set *, const struct bkey *);
Kent Overstreet65d45232013-12-20 17:22:05 -080014
15#endif /* _BCACHE_EXTENTS_H */