Grow.c: fix lots of white-space issues.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2011-12-23 06:59:51 +11:00
parent ce4783d3d6
commit 24daa16fa1
1 changed files with 41 additions and 43 deletions

10
Grow.c
View File

@ -480,7 +480,6 @@ int Grow_addbitmap(char *devname, int fd, char *file, int chunk, int delay, int
return 0;
}
/*
* When reshaping an array we might need to backup some data.
* This is written to all spares with a 'super_block' describing it.
@ -2968,7 +2967,6 @@ check_progress:
}
}
/* FIXME return status is never checked */
static int grow_backup(struct mdinfo *sra,
unsigned long long offset, /* per device */
@ -3086,8 +3084,8 @@ static int grow_backup(struct mdinfo *sra,
* every works.
*/
/* FIXME return value is often ignored */
static int forget_backup(
int dests, int *destfd, unsigned long long *destoffsets,
static int forget_backup(int dests, int *destfd,
unsigned long long *destoffsets,
int part)
{
/*
@ -3180,7 +3178,7 @@ static void validate(int afd, int bfd, unsigned long long offset)
if ((unsigned long long)read(afd, abuf, len) != len)
fail("read first from array failed");
if (memcmp(bbuf, abuf, len) != 0) {
#if 0
#if 0
int i;
printf("offset=%llu len=%llu\n",
(unsigned long long)__le64_to_cpu(bsb2.arraystart)*512, len);
@ -3189,7 +3187,7 @@ static void validate(int afd, int bfd, unsigned long long offset)
printf("first diff byte %d\n", i);
break;
}
#endif
#endif
fail("data1 compare failed");
}
}