Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
dm-thin.c File Reference
#include "dm-thin-metadata.h"
#include "dm-bio-prison.h"
#include "dm.h"
#include <linux/device-mapper.h>
#include <linux/dm-io.h>
#include <linux/dm-kcopyd.h>
#include <linux/list.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  pool_features
 
struct  pool
 
struct  pool_c
 
struct  thin_c
 
struct  dm_thin_pool_table
 
struct  dm_thin_endio_hook
 
struct  dm_thin_new_mapping
 

Macros

#define DM_MSG_PREFIX   "thin"
 
#define ENDIO_HOOK_POOL_SIZE   1024
 
#define MAPPING_POOL_SIZE   1024
 
#define PRISON_CELLS   1024
 
#define COMMIT_PERIOD   HZ
 
#define DATA_DEV_BLOCK_SIZE_MIN_SECTORS   (64 * 1024 >> SECTOR_SHIFT)
 
#define DATA_DEV_BLOCK_SIZE_MAX_SECTORS   (1024 * 1024 * 1024 >> SECTOR_SHIFT)
 
#define MAX_DEV_ID   ((1 << 24) - 1)
 

Typedefs

typedef void(* process_bio_fn )(struct thin_c *tc, struct bio *bio)
 
typedef void(* process_mapping_fn )(struct dm_thin_new_mapping *m)
 

Enumerations

enum  pool_mode { PM_WRITE, PM_READ_ONLY, PM_FAIL }
 

Functions

 module_init (dm_thin_init)
 
 module_exit (dm_thin_exit)
 
 MODULE_DESCRIPTION (DM_NAME" thin provisioning target")
 
 MODULE_AUTHOR ("Joe Thornber <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define COMMIT_PERIOD   HZ

Definition at line 27 of file dm-thin.c.

#define DATA_DEV_BLOCK_SIZE_MAX_SECTORS   (1024 * 1024 * 1024 >> SECTOR_SHIFT)

Definition at line 34 of file dm-thin.c.

#define DATA_DEV_BLOCK_SIZE_MIN_SECTORS   (64 * 1024 >> SECTOR_SHIFT)

Definition at line 33 of file dm-thin.c.

#define DM_MSG_PREFIX   "thin"

Definition at line 19 of file dm-thin.c.

#define ENDIO_HOOK_POOL_SIZE   1024

Definition at line 24 of file dm-thin.c.

#define MAPPING_POOL_SIZE   1024

Definition at line 25 of file dm-thin.c.

#define MAX_DEV_ID   ((1 << 24) - 1)

Definition at line 39 of file dm-thin.c.

#define PRISON_CELLS   1024

Definition at line 26 of file dm-thin.c.

Typedef Documentation

typedef void(* process_bio_fn)(struct thin_c *tc, struct bio *bio)

Definition at line 147 of file dm-thin.c.

typedef void(* process_mapping_fn)(struct dm_thin_new_mapping *m)

Definition at line 148 of file dm-thin.c.

Enumeration Type Documentation

enum pool_mode
Enumerator:
PM_WRITE 
PM_READ_ONLY 
PM_FAIL 

Definition at line 132 of file dm-thin.c.

Function Documentation

MODULE_AUTHOR ( "Joe Thornber <[email protected]>"  )
MODULE_DESCRIPTION ( DM_NAME" thin provisioning target )
module_exit ( dm_thin_exit  )
module_init ( dm_thin_init  )
MODULE_LICENSE ( "GPL"  )