summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-07-26 11:57:07 +1000
committerNeilBrown <neilb@suse.de>2010-07-26 12:52:29 +1000
commit11d8a6e3719519fbc0e2c9d61b6fa931b84bf813 (patch)
tree13a075d1423b2caa3d3264db0cf8cd378c545623 /drivers/md/raid5.h
parent4a5add49951e698073011855d1a8a7306bc9308d (diff)
downloadop-kernel-dev-11d8a6e3719519fbc0e2c9d61b6fa931b84bf813.zip
op-kernel-dev-11d8a6e3719519fbc0e2c9d61b6fa931b84bf813.tar.gz
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 61b6b25..d6470de 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
OpenPOWER on IntegriCloud