Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
dm-bio-prison.h File Reference
#include "persistent-data/dm-block-manager.h"
#include "dm-thin-metadata.h"
#include <linux/list.h>
#include <linux/bio.h>

Go to the source code of this file.

Data Structures

struct  dm_cell_key
 

Functions

struct dm_bio_prisondm_bio_prison_create (unsigned nr_cells)
 
void dm_bio_prison_destroy (struct dm_bio_prison *prison)
 
int dm_bio_detain (struct dm_bio_prison *prison, struct dm_cell_key *key, struct bio *inmate, struct dm_bio_prison_cell **ref)
 
void dm_cell_release (struct dm_bio_prison_cell *cell, struct bio_list *bios)
 
void dm_cell_release_singleton (struct dm_bio_prison_cell *cell, struct bio *bio)
 
void dm_cell_release_no_holder (struct dm_bio_prison_cell *cell, struct bio_list *inmates)
 
void dm_cell_error (struct dm_bio_prison_cell *cell)
 
struct dm_deferred_setdm_deferred_set_create (void)
 
void dm_deferred_set_destroy (struct dm_deferred_set *ds)
 
struct dm_deferred_entrydm_deferred_entry_inc (struct dm_deferred_set *ds)
 
void dm_deferred_entry_dec (struct dm_deferred_entry *entry, struct list_head *head)
 
int dm_deferred_set_add_work (struct dm_deferred_set *ds, struct list_head *work)
 

Function Documentation

int dm_bio_detain ( struct dm_bio_prison prison,
struct dm_cell_key key,
struct bio *  inmate,
struct dm_bio_prison_cell **  ref 
)

Definition at line 124 of file dm-bio-prison.c.

struct dm_bio_prison* dm_bio_prison_create ( unsigned  nr_cells)
read

Definition at line 55 of file dm-bio-prison.c.

void dm_bio_prison_destroy ( struct dm_bio_prison prison)

Definition at line 83 of file dm-bio-prison.c.

void dm_cell_error ( struct dm_bio_prison_cell cell)

Definition at line 259 of file dm-bio-prison.c.

void dm_cell_release ( struct dm_bio_prison_cell cell,
struct bio_list bios 
)

Definition at line 199 of file dm-bio-prison.c.

void dm_cell_release_no_holder ( struct dm_bio_prison_cell cell,
struct bio_list inmates 
)

Definition at line 248 of file dm-bio-prison.c.

void dm_cell_release_singleton ( struct dm_bio_prison_cell cell,
struct bio *  bio 
)

Definition at line 224 of file dm-bio-prison.c.

void dm_deferred_entry_dec ( struct dm_deferred_entry entry,
struct list_head head 
)

Definition at line 353 of file dm-bio-prison.c.

struct dm_deferred_entry* dm_deferred_entry_inc ( struct dm_deferred_set ds)
read

Definition at line 322 of file dm-bio-prison.c.

int dm_deferred_set_add_work ( struct dm_deferred_set ds,
struct list_head work 
)

Definition at line 368 of file dm-bio-prison.c.

struct dm_deferred_set* dm_deferred_set_create ( void  )
read

Definition at line 294 of file dm-bio-prison.c.

void dm_deferred_set_destroy ( struct dm_deferred_set ds)

Definition at line 316 of file dm-bio-prison.c.