Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions | Variables
ore.c File Reference
#include <linux/slab.h>
#include <linux/module.h>
#include <asm/div64.h>
#include <linux/lcm.h>
#include "ore_raid.h"

Go to the source code of this file.

Data Structures

struct  _trunc_info
 

Enumerations

enum  { BIO_MAX_PAGES_KMALLOC }
 

Functions

 MODULE_AUTHOR ("Boaz Harrosh <[email protected]>")
 
 MODULE_DESCRIPTION ("Objects Raid Engine ore.ko")
 
 MODULE_LICENSE ("GPL")
 
int ore_verify_layout (unsigned total_comps, struct ore_layout *layout)
 
 EXPORT_SYMBOL (ore_verify_layout)
 
int _ore_get_io_state (struct ore_layout *layout, struct ore_components *oc, unsigned numdevs, unsigned sgs_per_dev, unsigned num_par_pages, struct ore_io_state **pios)
 
int ore_get_rw_state (struct ore_layout *layout, struct ore_components *oc, bool is_reading, u64 offset, u64 length, struct ore_io_state **pios)
 
 EXPORT_SYMBOL (ore_get_rw_state)
 
int ore_get_io_state (struct ore_layout *layout, struct ore_components *oc, struct ore_io_state **pios)
 
 EXPORT_SYMBOL (ore_get_io_state)
 
void ore_put_io_state (struct ore_io_state *ios)
 
 EXPORT_SYMBOL (ore_put_io_state)
 
int ore_io_execute (struct ore_io_state *ios)
 
int ore_check_io (struct ore_io_state *ios, ore_on_dev_error on_dev_error)
 
 EXPORT_SYMBOL (ore_check_io)
 
void ore_calc_stripe_info (struct ore_layout *layout, u64 file_offset, u64 length, struct ore_striping_info *si)
 
 EXPORT_SYMBOL (ore_calc_stripe_info)
 
int _ore_add_stripe_unit (struct ore_io_state *ios, unsigned *cur_pg, unsigned pgbase, struct page **pages, struct ore_per_dev_state *per_dev, int cur_len)
 
int ore_create (struct ore_io_state *ios)
 
 EXPORT_SYMBOL (ore_create)
 
int ore_remove (struct ore_io_state *ios)
 
 EXPORT_SYMBOL (ore_remove)
 
int ore_write (struct ore_io_state *ios)
 
 EXPORT_SYMBOL (ore_write)
 
int _ore_read_mirror (struct ore_io_state *ios, unsigned cur_comp)
 
int ore_read (struct ore_io_state *ios)
 
 EXPORT_SYMBOL (ore_read)
 
int extract_attr_from_ios (struct ore_io_state *ios, struct osd_attr *attr)
 
 EXPORT_SYMBOL (extract_attr_from_ios)
 
int ore_truncate (struct ore_layout *layout, struct ore_components *oc, u64 size)
 
 EXPORT_SYMBOL (ore_truncate)
 
 EXPORT_SYMBOL (g_attr_logical_length)
 

Variables

struct osd_attr g_attr_logical_length
 

Enumeration Type Documentation

anonymous enum
Enumerator:
BIO_MAX_PAGES_KMALLOC 

Definition at line 46 of file ore.c.

Function Documentation

int _ore_add_stripe_unit ( struct ore_io_state ios,
unsigned *  cur_pg,
unsigned  pgbase,
struct page **  pages,
struct ore_per_dev_state *  per_dev,
int  cur_len 
)

Definition at line 575 of file ore.c.

int _ore_get_io_state ( struct ore_layout layout,
struct ore_components oc,
unsigned  numdevs,
unsigned  sgs_per_dev,
unsigned  num_par_pages,
struct ore_io_state **  pios 
)

Definition at line 138 of file ore.c.

int _ore_read_mirror ( struct ore_io_state ios,
unsigned  cur_comp 
)

Definition at line 913 of file ore.c.

EXPORT_SYMBOL ( ore_verify_layout  )
EXPORT_SYMBOL ( ore_get_rw_state  )
EXPORT_SYMBOL ( ore_get_io_state  )
EXPORT_SYMBOL ( ore_put_io_state  )
EXPORT_SYMBOL ( ore_check_io  )
EXPORT_SYMBOL ( ore_calc_stripe_info  )
EXPORT_SYMBOL ( ore_create  )
EXPORT_SYMBOL ( ore_remove  )
EXPORT_SYMBOL ( ore_write  )
EXPORT_SYMBOL ( ore_read  )
EXPORT_SYMBOL ( extract_attr_from_ios  )
EXPORT_SYMBOL ( ore_truncate  )
EXPORT_SYMBOL ( g_attr_logical_length  )
int extract_attr_from_ios ( struct ore_io_state ios,
struct osd_attr attr 
)

Definition at line 987 of file ore.c.

MODULE_AUTHOR ( "Boaz Harrosh <[email protected]>"  )
MODULE_DESCRIPTION ( "Objects Raid Engine ore.ko"  )
MODULE_LICENSE ( "GPL"  )
void ore_calc_stripe_info ( struct ore_layout layout,
u64  file_offset,
u64  length,
struct ore_striping_info si 
)

Definition at line 516 of file ore.c.

int ore_check_io ( struct ore_io_state ios,
ore_on_dev_error  on_dev_error 
)

Definition at line 414 of file ore.c.

int ore_create ( struct ore_io_state ios)

Definition at line 741 of file ore.c.

int ore_get_io_state ( struct ore_layout layout,
struct ore_components oc,
struct ore_io_state **  pios 
)

Definition at line 305 of file ore.c.

int ore_get_rw_state ( struct ore_layout layout,
struct ore_components oc,
bool  is_reading,
u64  offset,
u64  length,
struct ore_io_state **  pios 
)

Definition at line 237 of file ore.c.

int ore_io_execute ( struct ore_io_state ios)

Definition at line 354 of file ore.c.

void ore_put_io_state ( struct ore_io_state ios)

Definition at line 312 of file ore.c.

int ore_read ( struct ore_io_state ios)

Definition at line 967 of file ore.c.

int ore_remove ( struct ore_io_state ios)

Definition at line 766 of file ore.c.

int ore_truncate ( struct ore_layout layout,
struct ore_components oc,
u64  size 
)

Definition at line 1055 of file ore.c.

int ore_verify_layout ( unsigned  total_comps,
struct ore_layout layout 
)

Definition at line 49 of file ore.c.

int ore_write ( struct ore_io_state ios)

Definition at line 885 of file ore.c.

Variable Documentation

struct osd_attr g_attr_logical_length
Initial value:

Definition at line 1117 of file ore.c.