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

Go to the source code of this file.

Macros

#define DM_MSG_PREFIX   "space map common"
 
#define INDEX_CSUM_XOR   160478
 
#define BITMAP_CSUM_XOR   240779
 
#define ENTRIES_PER_WORD   32
 
#define ENTRIES_SHIFT   5
 
#define WORD_MASK_HIGH   0xAAAAAAAAAAAAAAAAULL
 

Functions

int sm_ll_extend (struct ll_disk *ll, dm_block_t extra_blocks)
 
int sm_ll_lookup_bitmap (struct ll_disk *ll, dm_block_t b, uint32_t *result)
 
int sm_ll_lookup (struct ll_disk *ll, dm_block_t b, uint32_t *result)
 
int sm_ll_find_free_block (struct ll_disk *ll, dm_block_t begin, dm_block_t end, dm_block_t *result)
 
int sm_ll_insert (struct ll_disk *ll, dm_block_t b, uint32_t ref_count, enum allocation_event *ev)
 
int sm_ll_inc (struct ll_disk *ll, dm_block_t b, enum allocation_event *ev)
 
int sm_ll_dec (struct ll_disk *ll, dm_block_t b, enum allocation_event *ev)
 
int sm_ll_commit (struct ll_disk *ll)
 
int sm_ll_new_metadata (struct ll_disk *ll, struct dm_transaction_manager *tm)
 
int sm_ll_open_metadata (struct ll_disk *ll, struct dm_transaction_manager *tm, void *root_le, size_t len)
 
int sm_ll_new_disk (struct ll_disk *ll, struct dm_transaction_manager *tm)
 
int sm_ll_open_disk (struct ll_disk *ll, struct dm_transaction_manager *tm, void *root_le, size_t len)
 

Macro Definition Documentation

#define BITMAP_CSUM_XOR   240779

Definition at line 70 of file dm-space-map-common.c.

#define DM_MSG_PREFIX   "space map common"

Definition at line 13 of file dm-space-map-common.c.

#define ENTRIES_PER_WORD   32

Definition at line 117 of file dm-space-map-common.c.

#define ENTRIES_SHIFT   5

Definition at line 118 of file dm-space-map-common.c.

#define INDEX_CSUM_XOR   160478

Definition at line 20 of file dm-space-map-common.c.

#define WORD_MASK_HIGH   0xAAAAAAAAAAAAAAAAULL

Definition at line 125 of file dm-space-map-common.c.

Function Documentation

int sm_ll_commit ( struct ll_disk ll)

Definition at line 478 of file dm-space-map-common.c.

int sm_ll_dec ( struct ll_disk ll,
dm_block_t  b,
enum allocation_event ev 
)

Definition at line 463 of file dm-space-map-common.c.

int sm_ll_extend ( struct ll_disk ll,
dm_block_t  extra_blocks 
)

Definition at line 232 of file dm-space-map-common.c.

int sm_ll_find_free_block ( struct ll_disk ll,
dm_block_t  begin,
dm_block_t  end,
dm_block_t result 
)

Definition at line 315 of file dm-space-map-common.c.

int sm_ll_inc ( struct ll_disk ll,
dm_block_t  b,
enum allocation_event ev 
)

Definition at line 451 of file dm-space-map-common.c.

int sm_ll_insert ( struct ll_disk ll,
dm_block_t  b,
uint32_t  ref_count,
enum allocation_event ev 
)

Definition at line 375 of file dm-space-map-common.c.

int sm_ll_lookup ( struct ll_disk ll,
dm_block_t  b,
uint32_t result 
)

Definition at line 295 of file dm-space-map-common.c.

int sm_ll_lookup_bitmap ( struct ll_disk ll,
dm_block_t  b,
uint32_t result 
)

Definition at line 273 of file dm-space-map-common.c.

int sm_ll_new_disk ( struct ll_disk ll,
struct dm_transaction_manager tm 
)

Definition at line 653 of file dm-space-map-common.c.

int sm_ll_new_metadata ( struct ll_disk ll,
struct dm_transaction_manager tm 
)

Definition at line 557 of file dm-space-map-common.c.

int sm_ll_open_disk ( struct ll_disk ll,
struct dm_transaction_manager tm,
void root_le,
size_t  len 
)

Definition at line 682 of file dm-space-map-common.c.

int sm_ll_open_metadata ( struct ll_disk ll,
struct dm_transaction_manager tm,
void root_le,
size_t  len 
)

Definition at line 586 of file dm-space-map-common.c.