Linux Kernel
3.7.1
|
#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) | |
#define RESYNC_PAGES ((RESYNC_BLOCK_SIZE + PAGE_SIZE-1) / PAGE_SIZE) |
#define RESYNC_SECTORS (RESYNC_BLOCK_SIZE >> 9) |
EXPORT_SYMBOL_GPL | ( | md_raid1_congested | ) |
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" | ) |