linux/fs/bcachefs/keylist.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _BCACHEFS_KEYLIST_H
#define _BCACHEFS_KEYLIST_H

#include "keylist_types.h"

int bch2_keylist_realloc(struct keylist *, u64 *, size_t, size_t);
void bch2_keylist_pop_front(struct keylist *);

static inline void bch2_keylist_init(struct keylist *l, u64 *inline_keys)
{}

static inline void bch2_keylist_free(struct keylist *l, u64 *inline_keys)
{}

static inline void bch2_keylist_push(struct keylist *l)
{}

static inline void bch2_keylist_add(struct keylist *l, const struct bkey_i *k)
{}

static inline bool bch2_keylist_empty(struct keylist *l)
{}

static inline size_t bch2_keylist_u64s(struct keylist *l)
{}

static inline size_t bch2_keylist_bytes(struct keylist *l)
{}

static inline struct bkey_i *bch2_keylist_front(struct keylist *l)
{}

#define for_each_keylist_key(_keylist, _k)

static inline u64 keylist_sectors(struct keylist *keys)
{}

#ifdef CONFIG_BCACHEFS_DEBUG
void bch2_verify_keylist_sorted(struct keylist *);
#else
static inline void bch2_verify_keylist_sorted(struct keylist *l) {}
#endif

#endif /* _BCACHEFS_KEYLIST_H */