linux/fs/bcachefs/alloc_types.h

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

#include <linux/mutex.h>
#include <linux/spinlock.h>

#include "clock_types.h"
#include "fifo.h"

struct bucket_alloc_state {};

#define BCH_WATERMARKS()

enum bch_watermark {};

#define BCH_WATERMARK_BITS
#define BCH_WATERMARK_MASK

#define OPEN_BUCKETS_COUNT

#define WRITE_POINT_HASH_NR
#define WRITE_POINT_MAX

/*
 * 0 is never a valid open_bucket_idx_t:
 */
open_bucket_idx_t;

struct open_bucket {};

#define OPEN_BUCKET_LIST_MAX

struct open_buckets {};

struct dev_stripe_state {};

#define WRITE_POINT_STATES()

enum write_point_state {};

struct write_point {};

struct write_point_specifier {};

#endif /* _BCACHEFS_ALLOC_TYPES_H */