summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.h
diff options
context:
space:
mode:
authorNeilBrown2010-07-26 03:57:07 +0200
committerNeilBrown2010-07-26 04:52:29 +0200
commit11d8a6e3719519fbc0e2c9d61b6fa931b84bf813 (patch)
tree13a075d1423b2caa3d3264db0cf8cd378c545623 /drivers/md/raid5.h
parentraid5: Don't set read-ahead when there is no queue (diff)
downloadkernel-qcow2-linux-11d8a6e3719519fbc0e2c9d61b6fa931b84bf813.tar.gz
kernel-qcow2-linux-11d8a6e3719519fbc0e2c9d61b6fa931b84bf813.tar.xz
kernel-qcow2-linux-11d8a6e3719519fbc0e2c9d61b6fa931b84bf813.zip
md/raid5: export is_congested test
the dm module will need this for dm-raid45. Also only access ->queue->backing_dev_info->congested_fn if ->queue actually exists. It won't in a dm target. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r--drivers/md/raid5.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h
index 61b6b25dc5e7..d6470dec667a 100644
--- a/drivers/md/raid5.h
+++ b/drivers/md/raid5.h
@@ -497,5 +497,7 @@ static inline int algorithm_is_DDF(int layout)
{
return layout >= 8 && layout <= 10;
}
+
+extern int md_raid5_congested(mddev_t *mddev, int bits);
extern int raid5_set_cache_size(mddev_t *mddev, int size);
#endif