Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
raid1.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 "md.h"
#include "raid1.h"
#include "bitmap.h"

Go to the source code of this file.

Data Structures

struct  raid1_plug_cb
 

Macros

#define NR_RAID1_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_SECTORS   (RESYNC_BLOCK_SIZE >> 9)
 
#define RESYNC_PAGES   ((RESYNC_BLOCK_SIZE + PAGE_SIZE-1) / PAGE_SIZE)
 
#define RESYNC_WINDOW   (2048*1024)
 
#define RESYNC_DEPTH   32
 

Functions

int md_raid1_congested (struct mddev *mddev, int bits)
 
 EXPORT_SYMBOL_GPL (md_raid1_congested)
 
 module_init (raid_init)
 
 module_exit (raid_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("RAID1 (mirroring) personality for MD")
 
 MODULE_ALIAS ("md-personality-3")
 
 MODULE_ALIAS ("md-raid1")
 
 MODULE_ALIAS ("md-level-1")
 
 module_param (max_queued_requests, int, S_IRUGO|S_IWUSR)
 

Macro Definition Documentation

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

Definition at line 61 of file raid1.c.

#define IO_BLOCKED   ((struct bio *)1)

Definition at line 54 of file raid1.c.

#define IO_MADE_GOOD   ((struct bio *)2)

Definition at line 59 of file raid1.c.

#define NR_RAID1_BIOS   256

Definition at line 47 of file raid1.c.

#define RESYNC_BLOCK_SIZE   (64*1024)

Definition at line 86 of file raid1.c.

#define RESYNC_DEPTH   32

Definition at line 817 of file raid1.c.

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

Definition at line 89 of file raid1.c.

#define RESYNC_SECTORS   (RESYNC_BLOCK_SIZE >> 9)

Definition at line 88 of file raid1.c.

#define RESYNC_WINDOW   (2048*1024)

Definition at line 90 of file raid1.c.

Function Documentation

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

Definition at line 725 of file raid1.c.

MODULE_ALIAS ( "md-personality-3"  )
MODULE_ALIAS ( "md-raid1"  )
MODULE_ALIAS ( "md-level-1"  )
MODULE_DESCRIPTION ( "RAID1 (mirroring) personality for MD )
module_exit ( raid_exit  )
module_init ( raid_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( max_queued_requests  ,
int  ,
S_IRUGO S_IWUSR 
)