linux/fs/bcachefs/recovery_passes.c

// SPDX-License-Identifier: GPL-2.0

#include "bcachefs.h"
#include "alloc_background.h"
#include "backpointers.h"
#include "btree_gc.h"
#include "btree_node_scan.h"
#include "disk_accounting.h"
#include "ec.h"
#include "fsck.h"
#include "inode.h"
#include "journal.h"
#include "lru.h"
#include "logged_ops.h"
#include "rebalance.h"
#include "recovery.h"
#include "recovery_passes.h"
#include "snapshot.h"
#include "subvolume.h"
#include "super.h"
#include "super-io.h"

const char * const bch2_recovery_passes[] =;

static int bch2_set_may_go_rw(struct bch_fs *c)
{}

struct recovery_pass_fn {};

static struct recovery_pass_fn recovery_pass_fns[] =;

static const u8 passes_to_stable_map[] =;

static enum bch_recovery_pass_stable bch2_recovery_pass_to_stable(enum bch_recovery_pass pass)
{}

u64 bch2_recovery_passes_to_stable(u64 v)
{}

u64 bch2_recovery_passes_from_stable(u64 v)
{}

/*
 * For when we need to rewind recovery passes and run a pass we skipped:
 */
int bch2_run_explicit_recovery_pass(struct bch_fs *c,
				    enum bch_recovery_pass pass)
{}

int bch2_run_explicit_recovery_pass_persistent(struct bch_fs *c,
					       enum bch_recovery_pass pass)
{}

static void bch2_clear_recovery_pass_required(struct bch_fs *c,
					      enum bch_recovery_pass pass)
{}

u64 bch2_fsck_recovery_passes(void)
{}

static bool should_run_recovery_pass(struct bch_fs *c, enum bch_recovery_pass pass)
{}

static int bch2_run_recovery_pass(struct bch_fs *c, enum bch_recovery_pass pass)
{}

int bch2_run_online_recovery_passes(struct bch_fs *c)
{}

int bch2_run_recovery_passes(struct bch_fs *c)
{}