Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139904
b: refs/heads/master
c: 3dbd8c2
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and NeilBrown committed Mar 31, 2009
1 parent 2158388 commit f5a63db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3f9d99c12a533809342b475c95452e82761bcc1c
refs/heads/master: 3dbd8c2e3ff0185585e068f190289d2a267a3e83
12 changes: 5 additions & 7 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
#include <linux/file.h>
#include <linux/delay.h>

#define MAJOR_NR MD_MAJOR

/* 63 partitions with the alternate major number (mdp) */
#define MdpMinorShift 6

Expand Down Expand Up @@ -6503,13 +6501,13 @@ static void md_geninit(void)

static int __init md_init(void)
{
if (register_blkdev(MAJOR_NR, "md"))
if (register_blkdev(MD_MAJOR, "md"))
return -1;
if ((mdp_major=register_blkdev(0, "mdp"))<=0) {
unregister_blkdev(MAJOR_NR, "md");
unregister_blkdev(MD_MAJOR, "md");
return -1;
}
blk_register_region(MKDEV(MAJOR_NR, 0), 1UL<<MINORBITS, THIS_MODULE,
blk_register_region(MKDEV(MD_MAJOR, 0), 1UL<<MINORBITS, THIS_MODULE,
md_probe, NULL, NULL);
blk_register_region(MKDEV(mdp_major, 0), 1UL<<MINORBITS, THIS_MODULE,
md_probe, NULL, NULL);
Expand Down Expand Up @@ -6595,10 +6593,10 @@ static __exit void md_exit(void)
mddev_t *mddev;
struct list_head *tmp;

blk_unregister_region(MKDEV(MAJOR_NR,0), 1U << MINORBITS);
blk_unregister_region(MKDEV(MD_MAJOR,0), 1U << MINORBITS);
blk_unregister_region(MKDEV(mdp_major,0), 1U << MINORBITS);

unregister_blkdev(MAJOR_NR,"md");
unregister_blkdev(MD_MAJOR,"md");
unregister_blkdev(mdp_major, "mdp");
unregister_reboot_notifier(&md_notifier);
unregister_sysctl_table(raid_table_header);
Expand Down

0 comments on commit f5a63db

Please sign in to comment.