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