summaryrefslogtreecommitdiff
path: root/super0.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-06-19 12:31:45 +1000
committerNeilBrown <neilb@suse.de>2013-06-19 12:31:45 +1000
commit1011e8344a6b881883af57959cdd9ec7f9084407 (patch)
tree01680ce6a6696a200b534e4c434fe0078b8933d6 /super0.c
parente6dd89da86813679fae44e472ea470a943f133e2 (diff)
Remove lots of unnecessary white space.
Now that I am using white-space mode in Emacs I can see all of this, and I don't like it :-) Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/super0.c b/super0.c
index 47981ac2..ff4c657c 100644
--- a/super0.c
+++ b/super0.c
@@ -36,7 +36,6 @@
* .. other stuff
*/
-
static unsigned long calc_sb0_csum(mdp_super_t *super)
{
unsigned long csum = super->sb_csum;
@@ -690,7 +689,6 @@ static int update_super0(struct supertype *st, struct mdinfo *info,
* host name
*/
-
static int init_super0(struct supertype *st, mdu_array_info_t *info,
unsigned long long size, char *ignored_name, char *homehost,
int *uuid, unsigned long long data_offset)
@@ -861,7 +859,7 @@ static int store_super0(struct supertype *st, int fd)
if (super->state & (1<<MD_SB_BITMAP_PRESENT)) {
struct bitmap_super_s * bm = (struct bitmap_super_s*)(super+1);
if (__le32_to_cpu(bm->magic) == BITMAP_MAGIC)
- if (write(fd, bm, ROUND_UP(sizeof(*bm),4096)) !=
+ if (write(fd, bm, ROUND_UP(sizeof(*bm),4096)) !=
ROUND_UP(sizeof(*bm),4096))
return 5;
}
@@ -920,7 +918,7 @@ static int compare_super0(struct supertype *st, struct supertype *tst)
return 1;
if (!first) {
if (posix_memalign((void**)&first, 4096,
- MD_SB_BYTES +
+ MD_SB_BYTES +
ROUND_UP(sizeof(struct bitmap_super_s), 4096)) != 0) {
pr_err("%s could not allocate superblock\n", __func__);
return 1;
@@ -947,7 +945,6 @@ static int compare_super0(struct supertype *st, struct supertype *tst)
return 0;
}
-
static void free_super0(struct supertype *st);
static int load_super0(struct supertype *st, int fd, char *devname)
@@ -1118,7 +1115,6 @@ static int add_internal_bitmap0(struct supertype *st, int *chunkp,
bitmap_super_t *bms = (bitmap_super_t*)(((char*)sb) + MD_SB_BYTES);
int uuid[4];
-
min_chunk = 4096; /* sub-page chunks don't work yet.. */
bits = (size * 512) / min_chunk + 1;
while (bits > max_bits) {
@@ -1150,7 +1146,6 @@ static int add_internal_bitmap0(struct supertype *st, int *chunkp,
return 1;
}
-
static void locate_bitmap0(struct supertype *st, int fd)
{
unsigned long long dsize;