cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

tree-checker.h (776B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 * Copyright (C) Qu Wenruo 2017.  All rights reserved.
      4 */
      5
      6#ifndef BTRFS_TREE_CHECKER_H
      7#define BTRFS_TREE_CHECKER_H
      8
      9#include "ctree.h"
     10#include "extent_io.h"
     11
     12/*
     13 * Comprehensive leaf checker.
     14 * Will check not only the item pointers, but also every possible member
     15 * in item data.
     16 */
     17int btrfs_check_leaf_full(struct extent_buffer *leaf);
     18
     19/*
     20 * Less strict leaf checker.
     21 * Will only check item pointers, not reading item data.
     22 */
     23int btrfs_check_leaf_relaxed(struct extent_buffer *leaf);
     24int btrfs_check_node(struct extent_buffer *node);
     25
     26int btrfs_check_chunk_valid(struct extent_buffer *leaf,
     27			    struct btrfs_chunk *chunk, u64 logical);
     28int btrfs_check_eb_owner(const struct extent_buffer *eb, u64 root_owner);
     29
     30#endif