diff options
Diffstat (limited to 'drivers/md/multipath.c')
-rw-r--r-- | drivers/md/multipath.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c index 97a56aaaef6d..d4d838e3f9f8 100644 --- a/drivers/md/multipath.c +++ b/drivers/md/multipath.c | |||
@@ -35,9 +35,6 @@ | |||
35 | #define NR_RESERVED_BUFS 32 | 35 | #define NR_RESERVED_BUFS 32 |
36 | 36 | ||
37 | 37 | ||
38 | static mdk_personality_t multipath_personality; | ||
39 | |||
40 | |||
41 | static void *mp_pool_alloc(gfp_t gfp_flags, void *data) | 38 | static void *mp_pool_alloc(gfp_t gfp_flags, void *data) |
42 | { | 39 | { |
43 | struct multipath_bh *mpb; | 40 | struct multipath_bh *mpb; |
@@ -553,9 +550,10 @@ static int multipath_stop (mddev_t *mddev) | |||
553 | return 0; | 550 | return 0; |
554 | } | 551 | } |
555 | 552 | ||
556 | static mdk_personality_t multipath_personality= | 553 | static struct mdk_personality multipath_personality = |
557 | { | 554 | { |
558 | .name = "multipath", | 555 | .name = "multipath", |
556 | .level = LEVEL_MULTIPATH, | ||
559 | .owner = THIS_MODULE, | 557 | .owner = THIS_MODULE, |
560 | .make_request = multipath_make_request, | 558 | .make_request = multipath_make_request, |
561 | .run = multipath_run, | 559 | .run = multipath_run, |
@@ -568,15 +566,16 @@ static mdk_personality_t multipath_personality= | |||
568 | 566 | ||
569 | static int __init multipath_init (void) | 567 | static int __init multipath_init (void) |
570 | { | 568 | { |
571 | return register_md_personality (MULTIPATH, &multipath_personality); | 569 | return register_md_personality (&multipath_personality); |
572 | } | 570 | } |
573 | 571 | ||
574 | static void __exit multipath_exit (void) | 572 | static void __exit multipath_exit (void) |
575 | { | 573 | { |
576 | unregister_md_personality (MULTIPATH); | 574 | unregister_md_personality (&multipath_personality); |
577 | } | 575 | } |
578 | 576 | ||
579 | module_init(multipath_init); | 577 | module_init(multipath_init); |
580 | module_exit(multipath_exit); | 578 | module_exit(multipath_exit); |
581 | MODULE_LICENSE("GPL"); | 579 | MODULE_LICENSE("GPL"); |
582 | MODULE_ALIAS("md-personality-7"); /* MULTIPATH */ | 580 | MODULE_ALIAS("md-personality-7"); /* MULTIPATH */ |
581 | MODULE_ALIAS("md-level--4"); | ||