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
e849b938
Commit
e849b938
authored
Oct 11, 2011
by
NeilBrown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md/linear: typedef removal: linear_conf_t -> struct linear_conf
Signed-off-by:
NeilBrown
<
neilb@suse.de
>
parent
8f1ae43d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
drivers/md/linear.c
drivers/md/linear.c
+8
-8
drivers/md/linear.h
drivers/md/linear.h
+1
-5
No files found.
drivers/md/linear.c
View file @
e849b938
...
...
@@ -29,7 +29,7 @@
static
inline
struct
dev_info
*
which_dev
(
struct
mddev
*
mddev
,
sector_t
sector
)
{
int
lo
,
mid
,
hi
;
linear_conf_t
*
conf
;
struct
linear_conf
*
conf
;
lo
=
0
;
hi
=
mddev
->
raid_disks
-
1
;
...
...
@@ -90,7 +90,7 @@ static int linear_mergeable_bvec(struct request_queue *q,
static
int
linear_congested
(
void
*
data
,
int
bits
)
{
struct
mddev
*
mddev
=
data
;
linear_conf_t
*
conf
;
struct
linear_conf
*
conf
;
int
i
,
ret
=
0
;
if
(
mddev_congested
(
mddev
,
bits
))
...
...
@@ -110,7 +110,7 @@ static int linear_congested(void *data, int bits)
static
sector_t
linear_size
(
struct
mddev
*
mddev
,
sector_t
sectors
,
int
raid_disks
)
{
linear_conf_t
*
conf
;
struct
linear_conf
*
conf
;
sector_t
array_sectors
;
rcu_read_lock
();
...
...
@@ -123,9 +123,9 @@ static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disk
return
array_sectors
;
}
static
linear_conf_t
*
linear_conf
(
struct
mddev
*
mddev
,
int
raid_disks
)
static
struct
linear_conf
*
linear_conf
(
struct
mddev
*
mddev
,
int
raid_disks
)
{
linear_conf_t
*
conf
;
struct
linear_conf
*
conf
;
struct
md_rdev
*
rdev
;
int
i
,
cnt
;
...
...
@@ -196,7 +196,7 @@ static linear_conf_t *linear_conf(struct mddev *mddev, int raid_disks)
static
int
linear_run
(
struct
mddev
*
mddev
)
{
linear_conf_t
*
conf
;
struct
linear_conf
*
conf
;
if
(
md_check_no_bitmap
(
mddev
))
return
-
EINVAL
;
...
...
@@ -223,7 +223,7 @@ static int linear_add(struct mddev *mddev, struct md_rdev *rdev)
* The current one is never freed until the array is stopped.
* This avoids races.
*/
linear_conf_t
*
newconf
,
*
oldconf
;
struct
linear_conf
*
newconf
,
*
oldconf
;
if
(
rdev
->
saved_raid_disk
!=
mddev
->
raid_disks
)
return
-
EINVAL
;
...
...
@@ -247,7 +247,7 @@ static int linear_add(struct mddev *mddev, struct md_rdev *rdev)
static
int
linear_stop
(
struct
mddev
*
mddev
)
{
linear_conf_t
*
conf
=
mddev
->
private
;
struct
linear_conf
*
conf
=
mddev
->
private
;
/*
* We do not require rcu protection here since
...
...
drivers/md/linear.h
View file @
e849b938
...
...
@@ -6,14 +6,10 @@ struct dev_info {
sector_t
end_sector
;
};
struct
linear_
private_data
struct
linear_
conf
{
struct
rcu_head
rcu
;
sector_t
array_sectors
;
struct
dev_info
disks
[
0
];
};
typedef
struct
linear_private_data
linear_conf_t
;
#endif
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