aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-07-25 21:57:07 -0400
committerNeilBrown <neilb@suse.de>2010-07-25 22:52:29 -0400
commit11d8a6e3719519fbc0e2c9d61b6fa931b84bf813 (patch)
tree13a075d1423b2caa3d3264db0cf8cd378c545623 /drivers/md/raid5.h
parent4a5add49951e698073011855d1a8a7306bc9308d (diff)
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)
497{ 497{
498 return layout >= 8 && layout <= 10; 498 return layout >= 8 && layout <= 10;
499} 499}
500
501extern int md_raid5_congested(mddev_t *mddev, int bits);
500extern int raid5_set_cache_size(mddev_t *mddev, int size); 502extern int raid5_set_cache_size(mddev_t *mddev, int size);
501#endif 503#endif