Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
raid10.c File Reference
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/blkdev.h>
#include <linux/module.h>
#include <linux/seq_file.h>
#include <linux/ratelimit.h>
#include <linux/kthread.h>
#include "md.h"
#include "raid10.h"
#include "raid0.h"
#include "bitmap.h"

Go to the source code of this file.

Data Structures

struct  raid10_plug_cb
 

Macros

#define NR_RAID10_BIOS   256
 
#define IO_BLOCKED   ((struct bio *)1)
 
#define IO_MADE_GOOD   ((struct bio *)2)
 
#define BIO_SPECIAL(bio)   ((unsigned long)bio <= 2)
 
#define RESYNC_BLOCK_SIZE   (64*1024)
 
#define RESYNC_PAGES   ((RESYNC_BLOCK_SIZE + PAGE_SIZE-1) / PAGE_SIZE)
 
#define RESYNC_WINDOW   (1024*1024)
 
#define RESYNC_DEPTH   (32*1024*1024/RESYNC_BLOCK_SIZE)
 

Enumerations

enum  geo_type { geo_new, geo_old, geo_start }
 

Functions

int md_raid10_congested (struct mddev *mddev, int bits)
 
 EXPORT_SYMBOL_GPL (md_raid10_congested)
 
 module_init (raid_init)
 
 module_exit (raid_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("RAID10 (striped mirror) personality for MD")
 
 MODULE_ALIAS ("md-personality-9")
 
 MODULE_ALIAS ("md-raid10")
 
 MODULE_ALIAS ("md-level-10")
 
 module_param (max_queued_requests, int, S_IRUGO|S_IWUSR)
 

Macro Definition Documentation

#define BIO_SPECIAL (   bio)    ((unsigned long)bio <= 2)

Definition at line 75 of file raid10.c.

#define IO_BLOCKED   ((struct bio *)1)

Definition at line 68 of file raid10.c.

#define IO_MADE_GOOD   ((struct bio *)2)

Definition at line 73 of file raid10.c.

#define NR_RAID10_BIOS   256

Definition at line 61 of file raid10.c.

#define RESYNC_BLOCK_SIZE   (64*1024)

Definition at line 108 of file raid10.c.

#define RESYNC_DEPTH   (32*1024*1024/RESYNC_BLOCK_SIZE)

Definition at line 113 of file raid10.c.

#define RESYNC_PAGES   ((RESYNC_BLOCK_SIZE + PAGE_SIZE-1) / PAGE_SIZE)

Definition at line 109 of file raid10.c.

#define RESYNC_WINDOW   (1024*1024)

Definition at line 111 of file raid10.c.

Enumeration Type Documentation

enum geo_type
Enumerator:
geo_new 
geo_old 
geo_start 

Definition at line 3416 of file raid10.c.

Function Documentation

EXPORT_SYMBOL_GPL ( md_raid10_congested  )
int md_raid10_congested ( struct mddev mddev,
int  bits 
)

Definition at line 860 of file raid10.c.

MODULE_ALIAS ( "md-personality-9"  )
MODULE_ALIAS ( "md-raid10"  )
MODULE_ALIAS ( "md-level-10"  )
MODULE_DESCRIPTION ( "RAID10 (striped mirror) personality for MD )
module_exit ( raid_exit  )
module_init ( raid_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( max_queued_requests  ,
int  ,
S_IRUGO S_IWUSR 
)