Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dm-transaction-manager.c File Reference
#include "dm-transaction-manager.h"
#include "dm-space-map.h"
#include "dm-space-map-disk.h"
#include "dm-space-map-metadata.h"
#include "dm-persistent-data-internal.h"
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/device-mapper.h>

Go to the source code of this file.

Data Structures

struct  shadow_info
 
struct  dm_transaction_manager
 

Macros

#define DM_MSG_PREFIX   "transaction manager"
 
#define HASH_SIZE   256
 
#define HASH_MASK   (HASH_SIZE - 1)
 

Functions

struct dm_transaction_managerdm_tm_create_non_blocking_clone (struct dm_transaction_manager *real)
 
 EXPORT_SYMBOL_GPL (dm_tm_create_non_blocking_clone)
 
void dm_tm_destroy (struct dm_transaction_manager *tm)
 
 EXPORT_SYMBOL_GPL (dm_tm_destroy)
 
int dm_tm_pre_commit (struct dm_transaction_manager *tm)
 
 EXPORT_SYMBOL_GPL (dm_tm_pre_commit)
 
int dm_tm_commit (struct dm_transaction_manager *tm, struct dm_block *root)
 
 EXPORT_SYMBOL_GPL (dm_tm_commit)
 
int dm_tm_new_block (struct dm_transaction_manager *tm, struct dm_block_validator *v, struct dm_block **result)
 
int dm_tm_shadow_block (struct dm_transaction_manager *tm, dm_block_t orig, struct dm_block_validator *v, struct dm_block **result, int *inc_children)
 
 EXPORT_SYMBOL_GPL (dm_tm_shadow_block)
 
int dm_tm_read_lock (struct dm_transaction_manager *tm, dm_block_t b, struct dm_block_validator *v, struct dm_block **blk)
 
 EXPORT_SYMBOL_GPL (dm_tm_read_lock)
 
int dm_tm_unlock (struct dm_transaction_manager *tm, struct dm_block *b)
 
 EXPORT_SYMBOL_GPL (dm_tm_unlock)
 
void dm_tm_inc (struct dm_transaction_manager *tm, dm_block_t b)
 
 EXPORT_SYMBOL_GPL (dm_tm_inc)
 
void dm_tm_dec (struct dm_transaction_manager *tm, dm_block_t b)
 
 EXPORT_SYMBOL_GPL (dm_tm_dec)
 
int dm_tm_ref (struct dm_transaction_manager *tm, dm_block_t b, uint32_t *result)
 
struct dm_block_managerdm_tm_get_bm (struct dm_transaction_manager *tm)
 
int dm_tm_create_with_sm (struct dm_block_manager *bm, dm_block_t sb_location, struct dm_transaction_manager **tm, struct dm_space_map **sm)
 
 EXPORT_SYMBOL_GPL (dm_tm_create_with_sm)
 
int dm_tm_open_with_sm (struct dm_block_manager *bm, dm_block_t sb_location, void *sm_root, size_t root_len, struct dm_transaction_manager **tm, struct dm_space_map **sm)
 
 EXPORT_SYMBOL_GPL (dm_tm_open_with_sm)
 

Macro Definition Documentation

#define DM_MSG_PREFIX   "transaction manager"

Definition at line 16 of file dm-transaction-manager.c.

#define HASH_MASK   (HASH_SIZE - 1)

Definition at line 29 of file dm-transaction-manager.c.

#define HASH_SIZE   256

Definition at line 28 of file dm-transaction-manager.c.

Function Documentation

int dm_tm_commit ( struct dm_transaction_manager tm,
struct dm_block *  root 
)

Definition at line 162 of file dm-transaction-manager.c.

struct dm_transaction_manager* dm_tm_create_non_blocking_clone ( struct dm_transaction_manager real)
read

Definition at line 124 of file dm-transaction-manager.c.

int dm_tm_create_with_sm ( struct dm_block_manager bm,
dm_block_t  sb_location,
struct dm_transaction_manager **  tm,
struct dm_space_map **  sm 
)

Definition at line 365 of file dm-transaction-manager.c.

void dm_tm_dec ( struct dm_transaction_manager tm,
dm_block_t  b 
)

Definition at line 295 of file dm-transaction-manager.c.

void dm_tm_destroy ( struct dm_transaction_manager tm)

Definition at line 138 of file dm-transaction-manager.c.

struct dm_block_manager* dm_tm_get_bm ( struct dm_transaction_manager tm)
read

Definition at line 315 of file dm-transaction-manager.c.

void dm_tm_inc ( struct dm_transaction_manager tm,
dm_block_t  b 
)

Definition at line 284 of file dm-transaction-manager.c.

int dm_tm_new_block ( struct dm_transaction_manager tm,
struct dm_block_validator v,
struct dm_block **  result 
)

Definition at line 173 of file dm-transaction-manager.c.

int dm_tm_open_with_sm ( struct dm_block_manager bm,
dm_block_t  sb_location,
void sm_root,
size_t  root_len,
struct dm_transaction_manager **  tm,
struct dm_space_map **  sm 
)

Definition at line 373 of file dm-transaction-manager.c.

int dm_tm_pre_commit ( struct dm_transaction_manager tm)

Definition at line 147 of file dm-transaction-manager.c.

int dm_tm_read_lock ( struct dm_transaction_manager tm,
dm_block_t  b,
struct dm_block_validator v,
struct dm_block **  blk 
)

Definition at line 267 of file dm-transaction-manager.c.

int dm_tm_ref ( struct dm_transaction_manager tm,
dm_block_t  b,
uint32_t result 
)

Definition at line 306 of file dm-transaction-manager.c.

int dm_tm_shadow_block ( struct dm_transaction_manager tm,
dm_block_t  orig,
struct dm_block_validator v,
struct dm_block **  result,
int inc_children 
)

Definition at line 242 of file dm-transaction-manager.c.

int dm_tm_unlock ( struct dm_transaction_manager tm,
struct dm_block *  b 
)

Definition at line 278 of file dm-transaction-manager.c.

EXPORT_SYMBOL_GPL ( dm_tm_create_non_blocking_clone  )
EXPORT_SYMBOL_GPL ( dm_tm_destroy  )
EXPORT_SYMBOL_GPL ( dm_tm_pre_commit  )
EXPORT_SYMBOL_GPL ( dm_tm_commit  )
EXPORT_SYMBOL_GPL ( dm_tm_shadow_block  )
EXPORT_SYMBOL_GPL ( dm_tm_read_lock  )
EXPORT_SYMBOL_GPL ( dm_tm_unlock  )
EXPORT_SYMBOL_GPL ( dm_tm_inc  )
EXPORT_SYMBOL_GPL ( dm_tm_dec  )
EXPORT_SYMBOL_GPL ( dm_tm_create_with_sm  )
EXPORT_SYMBOL_GPL ( dm_tm_open_with_sm  )