#include "xfs.h"
#include "xfs_fs.h"
#include "xfs_shared.h"
#include "xfs_format.h"
#include "xfs_trans_resv.h"
#include "xfs_mount.h"
#include "xfs_log_format.h"
#include "xfs_trans.h"
#include "xfs_inode.h"
#include "xfs_dir2.h"
#include "xfs_dir2_priv.h"
#include "xfs_attr_leaf.h"
#include "scrub/scrub.h"
#include "scrub/common.h"
#include "scrub/trace.h"
#include "scrub/dabtree.h"
bool
xchk_da_process_error(
struct xchk_da_btree *ds,
int level,
int *error)
{ … }
void
xchk_da_set_corrupt(
struct xchk_da_btree *ds,
int level)
{ … }
void
xchk_da_set_preen(
struct xchk_da_btree *ds,
int level)
{ … }
static struct xfs_da_node_entry *
xchk_da_btree_node_entry(
struct xchk_da_btree *ds,
int level)
{ … }
int
xchk_da_btree_hash(
struct xchk_da_btree *ds,
int level,
__be32 *hashp)
{ … }
STATIC bool
xchk_da_btree_ptr_ok(
struct xchk_da_btree *ds,
int level,
xfs_dablk_t blkno)
{ … }
static void
xchk_da_btree_read_verify(
struct xfs_buf *bp)
{ … }
static void
xchk_da_btree_write_verify(
struct xfs_buf *bp)
{ … }
static void *
xchk_da_btree_verify(
struct xfs_buf *bp)
{ … }
static const struct xfs_buf_ops xchk_da_btree_buf_ops = …;
STATIC int
xchk_da_btree_block_check_sibling(
struct xchk_da_btree *ds,
int level,
int direction,
xfs_dablk_t sibling)
{ … }
STATIC int
xchk_da_btree_block_check_siblings(
struct xchk_da_btree *ds,
int level,
struct xfs_da_blkinfo *hdr)
{ … }
STATIC int
xchk_da_btree_block(
struct xchk_da_btree *ds,
int level,
xfs_dablk_t blkno)
{ … }
int
xchk_da_btree(
struct xfs_scrub *sc,
int whichfork,
xchk_da_btree_rec_fn scrub_fn,
void *private)
{ … }