Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
dm-btree-spine.c File Reference
#include "dm-btree-internal.h"
#include "dm-transaction-manager.h"
#include <linux/device-mapper.h>

Go to the source code of this file.

Macros

#define DM_MSG_PREFIX   "btree spine"
 
#define BTREE_CSUM_XOR   121107
 

Functions

int new_block (struct dm_btree_info *info, struct dm_block **result)
 
int unlock_block (struct dm_btree_info *info, struct dm_block *b)
 
void init_ro_spine (struct ro_spine *s, struct dm_btree_info *info)
 
int exit_ro_spine (struct ro_spine *s)
 
int ro_step (struct ro_spine *s, dm_block_t new_child)
 
struct nodero_node (struct ro_spine *s)
 
void init_shadow_spine (struct shadow_spine *s, struct dm_btree_info *info)
 
int exit_shadow_spine (struct shadow_spine *s)
 
int shadow_step (struct shadow_spine *s, dm_block_t b, struct dm_btree_value_type *vt)
 
struct dm_block * shadow_current (struct shadow_spine *s)
 
struct dm_block * shadow_parent (struct shadow_spine *s)
 
int shadow_has_parent (struct shadow_spine *s)
 
int shadow_root (struct shadow_spine *s)
 

Variables

struct dm_block_validator btree_node_validator
 

Macro Definition Documentation

#define BTREE_CSUM_XOR   121107

Definition at line 16 of file dm-btree-spine.c.

#define DM_MSG_PREFIX   "btree spine"

Definition at line 12 of file dm-btree-spine.c.

Function Documentation

int exit_ro_spine ( struct ro_spine s)

Definition at line 135 of file dm-btree-spine.c.

int exit_shadow_spine ( struct shadow_spine s)

Definition at line 185 of file dm-btree-spine.c.

void init_ro_spine ( struct ro_spine s,
struct dm_btree_info info 
)

Definition at line 127 of file dm-btree-spine.c.

void init_shadow_spine ( struct shadow_spine s,
struct dm_btree_info info 
)

Definition at line 179 of file dm-btree-spine.c.

int new_block ( struct dm_btree_info info,
struct dm_block **  result 
)

Definition at line 115 of file dm-btree-spine.c.

struct node* ro_node ( struct ro_spine s)
read

Definition at line 167 of file dm-btree-spine.c.

int ro_step ( struct ro_spine s,
dm_block_t  new_child 
)

Definition at line 148 of file dm-btree-spine.c.

struct dm_block* shadow_current ( struct shadow_spine s)
read

Definition at line 222 of file dm-btree-spine.c.

int shadow_has_parent ( struct shadow_spine s)

Definition at line 236 of file dm-btree-spine.c.

struct dm_block* shadow_parent ( struct shadow_spine s)
read

Definition at line 229 of file dm-btree-spine.c.

int shadow_root ( struct shadow_spine s)

Definition at line 241 of file dm-btree-spine.c.

int shadow_step ( struct shadow_spine s,
dm_block_t  b,
struct dm_btree_value_type vt 
)

Definition at line 198 of file dm-btree-spine.c.

int unlock_block ( struct dm_btree_info info,
struct dm_block *  b 
)

Definition at line 120 of file dm-btree-spine.c.

Variable Documentation

struct dm_block_validator btree_node_validator
Initial value:
= {
.name = "btree_node",
.prepare_for_write = node_prepare_for_write,
.check = node_check
}

Definition at line 87 of file dm-btree-spine.c.