Commit 3ec59360 authored by Neil Brown's avatar Neil Brown Committed by Trond Myklebust

[PATCH] MD - Get rid of dev in rdev and use bdev exclusively.

Get rid of dev in rdev and use bdev exclusively.

There is an awkwardness here in that userspace sometimes
passed down a dev_t (e.g. hot_add_disk) and sometime
a major and a minor (e.g. add_new_disk).  Should we convert
both to kdev_t as the uniform standard....
That is what was being done but it seemed very clumsy and
things were gets converted back and forth a lot.

As bdget used a dev_t, I felt safe in staying with dev_t once I
had one rather than converting to kdev_t and back.
parent c4909782
This diff is collapsed.
...@@ -144,7 +144,6 @@ struct mdk_rdev_s ...@@ -144,7 +144,6 @@ struct mdk_rdev_s
{ {
struct list_head same_set; /* RAID devices within the same set */ struct list_head same_set; /* RAID devices within the same set */
kdev_t dev; /* Device number */
unsigned long size; /* Device size (in blocks) */ unsigned long size; /* Device size (in blocks) */
mddev_t *mddev; /* RAID array if running */ mddev_t *mddev; /* RAID array if running */
unsigned long last_events; /* IO event timestamp */ unsigned long last_events; /* IO event timestamp */
...@@ -249,7 +248,6 @@ static inline kdev_t mddev_to_kdev(mddev_t * mddev) ...@@ -249,7 +248,6 @@ static inline kdev_t mddev_to_kdev(mddev_t * mddev)
return mk_kdev(MD_MAJOR, mdidx(mddev)); return mk_kdev(MD_MAJOR, mdidx(mddev));
} }
extern mdk_rdev_t * find_rdev(mddev_t * mddev, kdev_t dev);
extern mdk_rdev_t * find_rdev_nr(mddev_t *mddev, int nr); extern mdk_rdev_t * find_rdev_nr(mddev_t *mddev, int nr);
extern mdk_rdev_t *get_spare(mddev_t *mddev); extern mdk_rdev_t *get_spare(mddev_t *mddev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment