Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
check-integrity.c File Reference
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/buffer_head.h>
#include <linux/mutex.h>
#include <linux/crc32c.h>
#include <linux/genhd.h>
#include <linux/blkdev.h>
#include "ctree.h"
#include "disk-io.h"
#include "transaction.h"
#include "extent_io.h"
#include "volumes.h"
#include "print-tree.h"
#include "locking.h"
#include "check-integrity.h"
#include "rcu-string.h"

Go to the source code of this file.

Data Structures

struct  btrfsic_block
 
struct  btrfsic_block_link
 
struct  btrfsic_dev_state
 
struct  btrfsic_block_hashtable
 
struct  btrfsic_block_link_hashtable
 
struct  btrfsic_dev_state_hashtable
 
struct  btrfsic_block_data_ctx
 
struct  btrfsic_stack_frame
 
struct  btrfsic_state
 

Macros

#define BTRFSIC_BLOCK_HASHTABLE_SIZE   0x10000
 
#define BTRFSIC_BLOCK_LINK_HASHTABLE_SIZE   0x10000
 
#define BTRFSIC_DEV2STATE_HASHTABLE_SIZE   0x100
 
#define BTRFSIC_BLOCK_MAGIC_NUMBER   0x14491051
 
#define BTRFSIC_BLOCK_LINK_MAGIC_NUMBER   0x11070807
 
#define BTRFSIC_DEV2STATE_MAGIC_NUMBER   0x20111530
 
#define BTRFSIC_BLOCK_STACK_FRAME_MAGIC_NUMBER   20111300
 
#define BTRFSIC_TREE_DUMP_MAX_INDENT_LEVEL
 
#define BTRFSIC_GENERATION_UNKNOWN   ((u64)-1)
 
#define BTRFSIC_PRINT_MASK_SUPERBLOCK_WRITE   0x00000001
 
#define BTRFSIC_PRINT_MASK_ROOT_CHUNK_LOG_TREE_LOCATION   0x00000002
 
#define BTRFSIC_PRINT_MASK_TREE_AFTER_SB_WRITE   0x00000004
 
#define BTRFSIC_PRINT_MASK_TREE_BEFORE_SB_WRITE   0x00000008
 
#define BTRFSIC_PRINT_MASK_SUBMIT_BIO_BH   0x00000010
 
#define BTRFSIC_PRINT_MASK_END_IO_BIO_BH   0x00000020
 
#define BTRFSIC_PRINT_MASK_VERBOSE   0x00000040
 
#define BTRFSIC_PRINT_MASK_VERY_VERBOSE   0x00000080
 
#define BTRFSIC_PRINT_MASK_INITIAL_TREE   0x00000100
 
#define BTRFSIC_PRINT_MASK_INITIAL_ALL_TREES   0x00000200
 
#define BTRFSIC_PRINT_MASK_INITIAL_DATABASE   0x00000400
 
#define BTRFSIC_PRINT_MASK_NUM_COPIES   0x00000800
 
#define BTRFSIC_PRINT_MASK_TREE_WITH_ALL_MIRRORS   0x00001000
 

Functions

int btrfsic_submit_bh (int rw, struct buffer_head *bh)
 
void btrfsic_submit_bio (int rw, struct bio *bio)
 
int btrfsic_mount (struct btrfs_root *root, struct btrfs_fs_devices *fs_devices, int including_extent_data, u32 print_mask)
 
void btrfsic_unmount (struct btrfs_root *root, struct btrfs_fs_devices *fs_devices)
 

Macro Definition Documentation

#define BTRFSIC_BLOCK_HASHTABLE_SIZE   0x10000

Definition at line 99 of file check-integrity.c.

#define BTRFSIC_BLOCK_LINK_HASHTABLE_SIZE   0x10000

Definition at line 100 of file check-integrity.c.

#define BTRFSIC_BLOCK_LINK_MAGIC_NUMBER   0x11070807

Definition at line 103 of file check-integrity.c.

#define BTRFSIC_BLOCK_MAGIC_NUMBER   0x14491051

Definition at line 102 of file check-integrity.c.

#define BTRFSIC_BLOCK_STACK_FRAME_MAGIC_NUMBER   20111300

Definition at line 105 of file check-integrity.c.

#define BTRFSIC_DEV2STATE_HASHTABLE_SIZE   0x100

Definition at line 101 of file check-integrity.c.

#define BTRFSIC_DEV2STATE_MAGIC_NUMBER   0x20111530

Definition at line 104 of file check-integrity.c.

#define BTRFSIC_GENERATION_UNKNOWN   ((u64)-1)

Definition at line 107 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_END_IO_BIO_BH   0x00000020

Definition at line 118 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_INITIAL_ALL_TREES   0x00000200

Definition at line 122 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_INITIAL_DATABASE   0x00000400

Definition at line 123 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_INITIAL_TREE   0x00000100

Definition at line 121 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_NUM_COPIES   0x00000800

Definition at line 124 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_ROOT_CHUNK_LOG_TREE_LOCATION   0x00000002

Definition at line 114 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_SUBMIT_BIO_BH   0x00000010

Definition at line 117 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_SUPERBLOCK_WRITE   0x00000001

Definition at line 113 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_TREE_AFTER_SB_WRITE   0x00000004

Definition at line 115 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_TREE_BEFORE_SB_WRITE   0x00000008

Definition at line 116 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_TREE_WITH_ALL_MIRRORS   0x00001000

Definition at line 125 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_VERBOSE   0x00000040

Definition at line 119 of file check-integrity.c.

#define BTRFSIC_PRINT_MASK_VERY_VERBOSE   0x00000080

Definition at line 120 of file check-integrity.c.

#define BTRFSIC_TREE_DUMP_MAX_INDENT_LEVEL
Value:
(200 - 6) /* in characters,
* excluding " [...]" */

Definition at line 106 of file check-integrity.c.

Function Documentation

int btrfsic_mount ( struct btrfs_root root,
struct btrfs_fs_devices fs_devices,
int  including_extent_data,
u32  print_mask 
)

Definition at line 3187 of file check-integrity.c.

int btrfsic_submit_bh ( int  rw,
struct buffer_head *  bh 
)

Definition at line 3019 of file check-integrity.c.

void btrfsic_submit_bio ( int  rw,
struct bio *  bio 
)

Definition at line 3084 of file check-integrity.c.

void btrfsic_unmount ( struct btrfs_root root,
struct btrfs_fs_devices fs_devices 
)

Definition at line 3288 of file check-integrity.c.