linux/fs/bcachefs/sb-members_format.h

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

/*
 * We refer to members with bitmasks in various places - but we need to get rid
 * of this limit:
 */
#define BCH_SB_MEMBERS_MAX

/*
 * Sentinal value - indicates a device that does not exist
 */
#define BCH_SB_MEMBER_INVALID

#define BCH_MIN_NR_NBUCKETS

#define BCH_IOPS_MEASUREMENTS()

enum bch_iops_measurement {};

#define BCH_MEMBER_ERROR_TYPES()

enum bch_member_error_type {};

struct bch_member {};

/*
 * This limit comes from the bucket_gens array - it's a single allocation, and
 * kernel allocation are limited to INT_MAX
 */
#define BCH_MEMBER_NBUCKETS_MAX

#define BCH_MEMBER_V1_BYTES

LE64_BITMASK()
/* 4-14 unused, was TIER, HAS_(META)DATA, REPLACEMENT */
LE64_BITMASK()
LE64_BITMASK()
LE64_BITMASK()
LE64_BITMASK()
LE64_BITMASK()

#if 0
LE64_BITMASK(BCH_MEMBER_NR_READ_ERRORS,	struct bch_member, flags[1], 0,  20);
LE64_BITMASK(BCH_MEMBER_NR_WRITE_ERRORS,struct bch_member, flags[1], 20, 40);
#endif

#define BCH_MEMBER_STATES()

enum bch_member_state {};

struct bch_sb_field_members_v1 {};

struct bch_sb_field_members_v2 {};

#endif /* _BCACHEFS_SB_MEMBERS_FORMAT_H */