linux/fs/bcachefs/vstructs.h

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

#include "util.h"

/*
 * NOTE: we can't differentiate between __le64 and u64 with type_is - this
 * assumes u64 is little endian:
 */
#define __vstruct_u64s(_s)

#define __vstruct_bytes(_type, _u64s)

#define vstruct_bytes(_s)

#define __vstruct_blocks(_type, _sector_block_bits, _u64s)

#define vstruct_blocks(_s, _sector_block_bits)

#define vstruct_blocks_plus(_s, _sector_block_bits, _u64s)

#define vstruct_sectors(_s, _sector_block_bits)

#define vstruct_next(_s)
#define vstruct_last(_s)
#define vstruct_end(_s)

#define vstruct_for_each(_s, _i)

#define vstruct_for_each_safe(_s, _i)

#define vstruct_idx(_s, _idx)

#endif /* _VSTRUCTS_H */