Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
06a61909
Commit
06a61909
authored
Jul 23, 2002
by
Neil Brown
Committed by
Linus Torvalds
Jul 23, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] MD - Convert struct initialised in md to "the new way"
parent
d1cde62a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
57 deletions
+57
-57
drivers/md/linear.c
drivers/md/linear.c
+5
-5
drivers/md/md.c
drivers/md/md.c
+15
-15
drivers/md/multipath.c
drivers/md/multipath.c
+8
-8
drivers/md/raid0.c
drivers/md/raid0.c
+5
-5
drivers/md/raid1.c
drivers/md/raid1.c
+12
-12
drivers/md/raid5.c
drivers/md/raid5.c
+12
-12
No files found.
drivers/md/linear.c
View file @
06a61909
...
@@ -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
)
...
...
drivers/md/md.c
View file @
06a61909
...
@@ -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
)
...
...
drivers/md/multipath.c
View file @
06a61909
...
@@ -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
)
...
...
drivers/md/raid0.c
View file @
06a61909
...
@@ -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
)
...
...
drivers/md/raid1.c
View file @
06a61909
...
@@ -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
)
...
...
drivers/md/raid5.c
View file @
06a61909
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment