Commit 06a61909 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] MD - Convert struct initialised in md to "the new way"

parent d1cde62a
...@@ -193,11 +193,11 @@ static int linear_status (char *page, mddev_t *mddev) ...@@ -193,11 +193,11 @@ static int linear_status (char *page, mddev_t *mddev)
static mdk_personality_t linear_personality= static mdk_personality_t linear_personality=
{ {
name: "linear", .name = "linear",
make_request: linear_make_request, .make_request = linear_make_request,
run: linear_run, .run = linear_run,
stop: linear_stop, .stop = linear_stop,
status: linear_status, .status = linear_status,
}; };
static int __init linear_init (void) static int __init linear_init (void)
......
...@@ -118,14 +118,14 @@ static devfs_handle_t devfs_handle; ...@@ -118,14 +118,14 @@ static devfs_handle_t devfs_handle;
static struct gendisk md_gendisk= static struct gendisk md_gendisk=
{ {
major: MD_MAJOR, .major = MD_MAJOR,
major_name: "md", .major_name = "md",
minor_shift: 0, .minor_shift = 0,
part: md_hd_struct, .part = md_hd_struct,
sizes: md_size, .sizes = md_size,
nr_real: MAX_MD_DEVS, .nr_real = MAX_MD_DEVS,
next: NULL, .next = NULL,
fops: &md_fops, .fops = &md_fops,
}; };
/* /*
...@@ -2474,10 +2474,10 @@ static int md_release(struct inode *inode, struct file * file) ...@@ -2474,10 +2474,10 @@ static int md_release(struct inode *inode, struct file * file)
static struct block_device_operations md_fops = static struct block_device_operations md_fops =
{ {
owner: THIS_MODULE, .owner = THIS_MODULE,
open: md_open, .open = md_open,
release: md_release, .release = md_release,
ioctl: md_ioctl, .ioctl = md_ioctl,
}; };
...@@ -3165,9 +3165,9 @@ int md_notify_reboot(struct notifier_block *this, ...@@ -3165,9 +3165,9 @@ int md_notify_reboot(struct notifier_block *this,
} }
struct notifier_block md_notifier = { struct notifier_block md_notifier = {
notifier_call: md_notify_reboot, .notifier_call = md_notify_reboot,
next: NULL, .next = NULL,
priority: INT_MAX, /* before any real devices */ .priority = INT_MAX, /* before any real devices */
}; };
static void md_geninit(void) static void md_geninit(void)
......
...@@ -562,14 +562,14 @@ static int multipath_stop (mddev_t *mddev) ...@@ -562,14 +562,14 @@ static int multipath_stop (mddev_t *mddev)
static mdk_personality_t multipath_personality= static mdk_personality_t multipath_personality=
{ {
name: "multipath", .name = "multipath",
make_request: multipath_make_request, .make_request = multipath_make_request,
run: multipath_run, .run = multipath_run,
stop: multipath_stop, .stop = multipath_stop,
status: multipath_status, .status = multipath_status,
error_handler: multipath_error, .error_handler = multipath_error,
hot_add_disk: multipath_add_disk, .hot_add_disk = multipath_add_disk,
hot_remove_disk:multipath_remove_disk, .hot_remove_disk= multipath_remove_disk,
}; };
static int __init multipath_init (void) static int __init multipath_init (void)
......
...@@ -366,11 +366,11 @@ static int raid0_status (char *page, mddev_t *mddev) ...@@ -366,11 +366,11 @@ static int raid0_status (char *page, mddev_t *mddev)
static mdk_personality_t raid0_personality= static mdk_personality_t raid0_personality=
{ {
name: "raid0", .name = "raid0",
make_request: raid0_make_request, .make_request = raid0_make_request,
run: raid0_run, .run = raid0_run,
stop: raid0_stop, .stop = raid0_stop,
status: raid0_status, .status = raid0_status,
}; };
static int __init raid0_init (void) static int __init raid0_init (void)
......
...@@ -1346,18 +1346,18 @@ static int stop(mddev_t *mddev) ...@@ -1346,18 +1346,18 @@ static int stop(mddev_t *mddev)
static mdk_personality_t raid1_personality = static mdk_personality_t raid1_personality =
{ {
name: "raid1", .name = "raid1",
make_request: make_request, .make_request = make_request,
run: run, .run = run,
stop: stop, .stop = stop,
status: status, .status = status,
error_handler: error, .error_handler = error,
hot_add_disk: raid1_add_disk, .hot_add_disk = raid1_add_disk,
hot_remove_disk:raid1_remove_disk, .hot_remove_disk= raid1_remove_disk,
spare_write: raid1_spare_write, .spare_write = raid1_spare_write,
spare_inactive: raid1_spare_inactive, .spare_inactive = raid1_spare_inactive,
spare_active: raid1_spare_active, .spare_active = raid1_spare_active,
sync_request: sync_request .sync_request = sync_request,
}; };
static int __init raid_init(void) static int __init raid_init(void)
......
...@@ -1820,18 +1820,18 @@ static int raid5_add_disk(mddev_t *mddev, mdk_rdev_t *rdev) ...@@ -1820,18 +1820,18 @@ static int raid5_add_disk(mddev_t *mddev, mdk_rdev_t *rdev)
static mdk_personality_t raid5_personality= static mdk_personality_t raid5_personality=
{ {
name: "raid5", .name = "raid5",
make_request: make_request, .make_request = make_request,
run: run, .run = run,
stop: stop, .stop = stop,
status: status, .status = status,
error_handler: error, .error_handler = error,
hot_add_disk: raid5_add_disk, .hot_add_disk = raid5_add_disk,
hot_remove_disk:raid5_remove_disk, .hot_remove_disk= raid5_remove_disk,
spare_write: raid5_spare_write, .spare_write = raid5_spare_write,
spare_inactive: raid5_spare_inactive, .spare_inactive = raid5_spare_inactive,
spare_active: raid5_spare_active, .spare_active = raid5_spare_active,
sync_request: sync_request .sync_request = sync_request,
}; };
static int __init raid5_init (void) static int __init raid5_init (void)
......
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