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
bfcee0e3
Commit
bfcee0e3
authored
Jun 02, 2016
by
Mike Snitzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dm raid: rename functions that alloc and free struct raid_set
Signed-off-by:
Mike Snitzer
<
snitzer@redhat.com
>
parent
4286325b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
drivers/md/dm-raid.c
drivers/md/dm-raid.c
+7
-7
No files found.
drivers/md/dm-raid.c
View file @
bfcee0e3
...
...
@@ -587,8 +587,8 @@ static void rs_set_new(struct raid_set *rs)
mddev
->
delta_disks
=
0
;
}
static
struct
raid_set
*
context_alloc
(
struct
dm_target
*
ti
,
struct
raid_type
*
raid_type
,
unsigned
raid_devs
)
static
struct
raid_set
*
raid_set_alloc
(
struct
dm_target
*
ti
,
struct
raid_type
*
raid_type
,
unsigned
raid_devs
)
{
unsigned
i
;
struct
raid_set
*
rs
;
...
...
@@ -634,7 +634,7 @@ static struct raid_set *context_alloc(struct dm_target *ti, struct raid_type *ra
return
rs
;
}
static
void
contex
t_free
(
struct
raid_set
*
rs
)
static
void
raid_se
t_free
(
struct
raid_set
*
rs
)
{
int
i
;
...
...
@@ -663,7 +663,7 @@ static void context_free(struct raid_set *rs)
* <meta_dev> -
*
* This code parses those words. If there is a failure,
* the caller must use
context_free
to unwind the operations.
* the caller must use
raid_set_free()
to unwind the operations.
*/
static
int
parse_dev_params
(
struct
raid_set
*
rs
,
struct
dm_arg_set
*
as
)
{
...
...
@@ -2260,7 +2260,7 @@ static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv)
return
-
EINVAL
;
}
rs
=
contex
t_alloc
(
ti
,
rt
,
num_raid_devs
);
rs
=
raid_se
t_alloc
(
ti
,
rt
,
num_raid_devs
);
if
(
IS_ERR
(
rs
))
return
PTR_ERR
(
rs
);
...
...
@@ -2341,7 +2341,7 @@ static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv)
size_mismatch:
md_stop
(
&
rs
->
md
);
bad:
contex
t_free
(
rs
);
raid_se
t_free
(
rs
);
return
r
;
}
...
...
@@ -2352,7 +2352,7 @@ static void raid_dtr(struct dm_target *ti)
list_del_init
(
&
rs
->
callbacks
.
list
);
md_stop
(
&
rs
->
md
);
contex
t_free
(
rs
);
raid_se
t_free
(
rs
);
}
static
int
raid_map
(
struct
dm_target
*
ti
,
struct
bio
*
bio
)
...
...
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