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
d1688a6d
Commit
d1688a6d
authored
Oct 11, 2011
by
NeilBrown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md/raid5: typedef removal: raid5_conf_t -> struct r5conf
Signed-off-by:
NeilBrown
<
neilb@suse.de
>
parent
e8096360
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
86 deletions
+84
-86
drivers/md/dm-raid.c
drivers/md/dm-raid.c
+2
-2
drivers/md/raid5.c
drivers/md/raid5.c
+79
-79
drivers/md/raid5.h
drivers/md/raid5.h
+3
-5
No files found.
drivers/md/dm-raid.c
View file @
d1688a6d
...
...
@@ -1097,7 +1097,7 @@ static int raid_status(struct dm_target *ti, status_type_t type,
rs
->
md
.
bitmap_info
.
max_write_behind
);
if
(
rs
->
print_flags
&
DMPF_STRIPE_CACHE
)
{
raid5_conf_t
*
conf
=
rs
->
md
.
private
;
struct
r5conf
*
conf
=
rs
->
md
.
private
;
/* convert from kiB to sectors */
DMEMIT
(
" stripe_cache %d"
,
...
...
@@ -1146,7 +1146,7 @@ static void raid_io_hints(struct dm_target *ti, struct queue_limits *limits)
{
struct
raid_set
*
rs
=
ti
->
private
;
unsigned
chunk_size
=
rs
->
md
.
chunk_sectors
<<
9
;
raid5_conf_t
*
conf
=
rs
->
md
.
private
;
struct
r5conf
*
conf
=
rs
->
md
.
private
;
blk_limits_io_min
(
limits
,
chunk_size
);
blk_limits_io_opt
(
limits
,
chunk_size
*
(
conf
->
raid_disks
-
conf
->
max_degraded
));
...
...
drivers/md/raid5.c
View file @
d1688a6d
This diff is collapsed.
Click to expand it.
drivers/md/raid5.h
View file @
d1688a6d
...
...
@@ -197,7 +197,7 @@ enum reconstruct_states {
struct
stripe_head
{
struct
hlist_node
hash
;
struct
list_head
lru
;
/* inactive_list or handle_list */
struct
r
aid5_private_data
*
raid_conf
;
struct
r
5conf
*
raid_conf
;
short
generation
;
/* increments with every
* reshape */
sector_t
sector
;
/* sector of this row */
...
...
@@ -347,7 +347,7 @@ struct disk_info {
struct
md_rdev
*
rdev
;
};
struct
r
aid5_private_data
{
struct
r
5conf
{
struct
hlist_head
*
stripe_hashtbl
;
struct
mddev
*
mddev
;
struct
disk_info
*
spare
;
...
...
@@ -439,8 +439,6 @@ struct raid5_private_data {
struct
md_thread
*
thread
;
};
typedef
struct
raid5_private_data
raid5_conf_t
;
/*
* Our supported algorithms
*/
...
...
@@ -504,6 +502,6 @@ static inline int algorithm_is_DDF(int layout)
}
extern
int
md_raid5_congested
(
struct
mddev
*
mddev
,
int
bits
);
extern
void
md_raid5_kick_device
(
raid5_conf_t
*
conf
);
extern
void
md_raid5_kick_device
(
struct
r5conf
*
conf
);
extern
int
raid5_set_cache_size
(
struct
mddev
*
mddev
,
int
size
);
#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