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:
edc11d4
)
dm raid: remove WARN_ON() in raid10_md_layout_to_format()
author
Heinz Mauelshagen
<heinzm@redhat.com>
Thu, 13 Jul 2017 15:33:22 +0000
(17:33 +0200)
committer
Mike Snitzer
<snitzer@redhat.com>
Tue, 25 Jul 2017 18:54:18 +0000
(14:54 -0400)
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-raid.c
b/drivers/md/dm-raid.c
index 2e10c2f13a34986c9d8d445e1b00ea94261b2628..b409015c69094385810870dc2220cdcb533e81e8 100644
(file)
--- a/
drivers/md/dm-raid.c
+++ b/
drivers/md/dm-raid.c
@@
-564,9
+564,10
@@
static const char *raid10_md_layout_to_format(int layout)
if (__raid10_near_copies(layout) > 1)
return "near";
- WARN_ON(__raid10_far_copies(layout) < 2);
+ if (__raid10_far_copies(layout) > 1)
+ return "far";
- return "
far
";
+ return "
unknown
";
}
/* Return md raid10 algorithm for @name */