Fix --build on 2.2 kernels :-)

This code has clearly never been used because it isn't right.
But let's fix it anyway.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2012-07-09 17:21:50 +10:00
parent e705e81ba6
commit 45c8bd9961
1 changed files with 3 additions and 2 deletions

View File

@ -265,8 +265,9 @@ int Build(char *mddev, int chunk, int level, int layout,
chunk >>= 1;
}
if (level == 0)
chunk |= 0x20000;
else chunk |= 0x10000;
arg |= 0x20000;
else
arg |= 0x10000;
if (ioctl(mdfd, START_MD, arg)) {
pr_err("START_MD failed: %s\n",
strerror(errno));