Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbac1e06 authored by Heinz Mauelshagen's avatar Heinz Mauelshagen Committed by Mike Snitzer
Browse files

dm raid: remove WARN_ON() in raid10_md_layout_to_format()

parent edc11d49
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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 "unknown";
}

/* Return md raid10 algorithm for @name */