projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb8bf15
)
md: simplify the code with md_kick_rdev_from_array
author
Guoqing Jiang
<gqjiang@suse.com>
Fri, 3 Jun 2016 03:32:05 +0000
(23:32 -0400)
committer
Shaohua Li
<shli@fb.com>
Fri, 3 Jun 2016 23:23:02 +0000
(16:23 -0700)
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 25d454285ee8b51db48805c06370b50f1bf0eefe..459f1899f383161fd2466cb29e165d178450d46d 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-2478,8
+2478,7
@@
static int add_bound_rdev(struct md_rdev *rdev)
if (add_journal)
mddev_resume(mddev);
if (err) {
- unbind_rdev_from_array(rdev);
- export_rdev(rdev);
+ md_kick_rdev_from_array(rdev);
return err;
}
}