diff options
author | Shaohua Li <shli@fb.com> | 2015-08-13 14:31:57 -0700 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-10-24 17:16:18 +1100 |
commit | 6d036f7d52e5a9c3b2ff77883db4c34620681804 (patch) | |
tree | ddfd13c18855035a9e97423142da8df6f70ddc66 /drivers/md/raid5.h | |
parent | 3069aa8def32b0c2b83cd27d1c37ed30b47ce879 (diff) |
raid5: export some functions
Next several patches use some raid5 functions, rename them with raid5
prefix and export out.
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r-- | drivers/md/raid5.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h index 828c2925e68f..7686fcb62157 100644 --- a/drivers/md/raid5.h +++ b/drivers/md/raid5.h @@ -609,4 +609,12 @@ static inline int algorithm_is_DDF(int layout) extern void md_raid5_kick_device(struct r5conf *conf); extern int raid5_set_cache_size(struct mddev *mddev, int size); +extern sector_t raid5_compute_blocknr(struct stripe_head *sh, int i, int previous); +extern void raid5_release_stripe(struct stripe_head *sh); +extern sector_t raid5_compute_sector(struct r5conf *conf, sector_t r_sector, + int previous, int *dd_idx, + struct stripe_head *sh); +extern struct stripe_head * +raid5_get_active_stripe(struct r5conf *conf, sector_t sector, + int previous, int noblock, int noquiesce); #endif |