提交 bbac1e06 编写于 作者: H Heinz Mauelshagen 提交者: Mike Snitzer

dm raid: remove WARN_ON() in raid10_md_layout_to_format()

Signed-off-by: NHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: NMike Snitzer <snitzer@redhat.com>
上级 edc11d49
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册