md/raid5: factor out code for changing size of stripe cache.

Separate the actual 'change' code from the sysfs interface
so that it can eventually be called internally.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown
2010-06-01 19:37:24 +10:00
parent 00bcb4ac7e
commit c41d4ac40d
2 changed files with 28 additions and 14 deletions

View File

@ -497,4 +497,5 @@ static inline int algorithm_is_DDF(int layout)
{
return layout >= 8 && layout <= 10;
}
extern int raid5_set_cache_size(mddev_t *mddev, int size);
#endif