diff options
Diffstat (limited to 'drivers/md/raid6main.c')
-rw-r--r-- | drivers/md/raid6main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/md/raid6main.c b/drivers/md/raid6main.c index 79b5244f44f4..950e5fa6e1f2 100644 --- a/drivers/md/raid6main.c +++ b/drivers/md/raid6main.c | |||
@@ -2304,9 +2304,10 @@ static void raid6_quiesce(mddev_t *mddev, int state) | |||
2304 | } | 2304 | } |
2305 | } | 2305 | } |
2306 | 2306 | ||
2307 | static mdk_personality_t raid6_personality= | 2307 | static struct mdk_personality raid6_personality = |
2308 | { | 2308 | { |
2309 | .name = "raid6", | 2309 | .name = "raid6", |
2310 | .level = 6, | ||
2310 | .owner = THIS_MODULE, | 2311 | .owner = THIS_MODULE, |
2311 | .make_request = make_request, | 2312 | .make_request = make_request, |
2312 | .run = run, | 2313 | .run = run, |
@@ -2321,7 +2322,7 @@ static mdk_personality_t raid6_personality= | |||
2321 | .quiesce = raid6_quiesce, | 2322 | .quiesce = raid6_quiesce, |
2322 | }; | 2323 | }; |
2323 | 2324 | ||
2324 | static int __init raid6_init (void) | 2325 | static int __init raid6_init(void) |
2325 | { | 2326 | { |
2326 | int e; | 2327 | int e; |
2327 | 2328 | ||
@@ -2329,15 +2330,16 @@ static int __init raid6_init (void) | |||
2329 | if ( e ) | 2330 | if ( e ) |
2330 | return e; | 2331 | return e; |
2331 | 2332 | ||
2332 | return register_md_personality (RAID6, &raid6_personality); | 2333 | return register_md_personality(&raid6_personality); |
2333 | } | 2334 | } |
2334 | 2335 | ||
2335 | static void raid6_exit (void) | 2336 | static void raid6_exit (void) |
2336 | { | 2337 | { |
2337 | unregister_md_personality (RAID6); | 2338 | unregister_md_personality(&raid6_personality); |
2338 | } | 2339 | } |
2339 | 2340 | ||
2340 | module_init(raid6_init); | 2341 | module_init(raid6_init); |
2341 | module_exit(raid6_exit); | 2342 | module_exit(raid6_exit); |
2342 | MODULE_LICENSE("GPL"); | 2343 | MODULE_LICENSE("GPL"); |
2343 | MODULE_ALIAS("md-personality-8"); /* RAID6 */ | 2344 | MODULE_ALIAS("md-personality-8"); /* RAID6 */ |
2345 | MODULE_ALIAS("md-level-6"); | ||