linux/fs/bcachefs/bkey_methods.c

// SPDX-License-Identifier: GPL-2.0

#include "bcachefs.h"
#include "backpointers.h"
#include "bkey_methods.h"
#include "btree_cache.h"
#include "btree_types.h"
#include "alloc_background.h"
#include "dirent.h"
#include "disk_accounting.h"
#include "ec.h"
#include "error.h"
#include "extents.h"
#include "inode.h"
#include "io_misc.h"
#include "lru.h"
#include "quota.h"
#include "reflink.h"
#include "snapshot.h"
#include "subvolume.h"
#include "xattr.h"

const char * const bch2_bkey_types[] =;

static int deleted_key_invalid(struct bch_fs *c, struct bkey_s_c k,
			       enum bch_validate_flags flags, struct printbuf *err)
{}

#define bch2_bkey_ops_deleted

#define bch2_bkey_ops_whiteout

static int empty_val_key_invalid(struct bch_fs *c, struct bkey_s_c k,
				 enum bch_validate_flags flags, struct printbuf *err)
{}

#define bch2_bkey_ops_error

static int key_type_cookie_invalid(struct bch_fs *c, struct bkey_s_c k,
				   enum bch_validate_flags flags, struct printbuf *err)
{}

static void key_type_cookie_to_text(struct printbuf *out, struct bch_fs *c,
				    struct bkey_s_c k)
{}

#define bch2_bkey_ops_cookie

#define bch2_bkey_ops_hash_whiteout

static int key_type_inline_data_invalid(struct bch_fs *c, struct bkey_s_c k,
					enum bch_validate_flags flags, struct printbuf *err)
{}

static void key_type_inline_data_to_text(struct printbuf *out, struct bch_fs *c,
					 struct bkey_s_c k)
{}

#define bch2_bkey_ops_inline_data

static bool key_type_set_merge(struct bch_fs *c, struct bkey_s l, struct bkey_s_c r)
{}

#define bch2_bkey_ops_set

const struct bkey_ops bch2_bkey_ops[] =;

const struct bkey_ops bch2_bkey_null_ops =;

int bch2_bkey_val_invalid(struct bch_fs *c, struct bkey_s_c k,
			  enum bch_validate_flags flags,
			  struct printbuf *err)
{}

static u64 bch2_key_types_allowed[] =;

const char *bch2_btree_node_type_str(enum btree_node_type type)
{}

int __bch2_bkey_invalid(struct bch_fs *c, struct bkey_s_c k,
			enum btree_node_type type,
			enum bch_validate_flags flags,
			struct printbuf *err)
{}

int bch2_bkey_invalid(struct bch_fs *c, struct bkey_s_c k,
		      enum btree_node_type type,
		      enum bch_validate_flags flags,
		      struct printbuf *err)
{}

int bch2_bkey_in_btree_node(struct bch_fs *c, struct btree *b,
			    struct bkey_s_c k, struct printbuf *err)
{}

void bch2_bpos_to_text(struct printbuf *out, struct bpos pos)
{}

void bch2_bkey_to_text(struct printbuf *out, const struct bkey *k)
{}

void bch2_val_to_text(struct printbuf *out, struct bch_fs *c,
		      struct bkey_s_c k)
{}

void bch2_bkey_val_to_text(struct printbuf *out, struct bch_fs *c,
			   struct bkey_s_c k)
{}

void bch2_bkey_swab_val(struct bkey_s k)
{}

bool bch2_bkey_normalize(struct bch_fs *c, struct bkey_s k)
{}

bool bch2_bkey_merge(struct bch_fs *c, struct bkey_s l, struct bkey_s_c r)
{}

static const struct old_bkey_type {} bkey_renumber_table[] =;

void bch2_bkey_renumber(enum btree_node_type btree_node_type,
			struct bkey_packed *k,
			int write)
{}

void __bch2_bkey_compat(unsigned level, enum btree_id btree_id,
			unsigned version, unsigned big_endian,
			int write,
			struct bkey_format *f,
			struct bkey_packed *k)
{}