summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.h
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2011-06-07 17:50:35 -0500
committerNeilBrown <neilb@suse.de>2011-06-08 15:11:31 +1000
commit1ed7242e591af7e233234d483f12d33818b189d9 (patch)
tree87d4a65cdb3510a97da7f2aefb9534839c49cfa4 /drivers/md/raid1.h
parent0fd018af37dadbb7826850883ad8abfecdb1a00b (diff)
downloadop-kernel-dev-1ed7242e591af7e233234d483f12d33818b189d9.zip
op-kernel-dev-1ed7242e591af7e233234d483f12d33818b189d9.tar.gz
MD: raid1 changes to allow use by device mapper
MD RAID1: Changes to allow RAID1 to be used by device-mapper (dm-raid.c) Added the necessary congestion function and conditionalize calls requiring an array 'queue' or 'gendisk'. Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid1.h')
-rw-r--r--drivers/md/raid1.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/raid1.h b/drivers/md/raid1.h
index 5fc4ca1..e743a64 100644
--- a/drivers/md/raid1.h
+++ b/drivers/md/raid1.h
@@ -126,4 +126,6 @@ struct r1bio_s {
*/
#define R1BIO_Returned 6
+extern int md_raid1_congested(mddev_t *mddev, int bits);
+
#endif
OpenPOWER on IntegriCloud