]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Grow.c
Merge branch 'cluster'
[thirdparty/mdadm.git] / Grow.c
diff --git a/Grow.c b/Grow.c
index 857c7e1ea23af4f42c49ce4ca96a0ed2127c1d4e..a1f8e4c75e932009a4bbd72799636bf491df31c1 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -616,10 +616,8 @@ static void unfreeze(struct supertype *st)
 
                if (sra &&
                    sysfs_get_str(sra, NULL, "sync_action", buf, 20) > 0
-                   && strcmp(buf, "frozen\n") == 0) {
-                       printf("unfreeze\n");
+                   && strcmp(buf, "frozen\n") == 0)
                        sysfs_set_str(sra, NULL, "sync_action", "idle");
-               }
                sysfs_free(sra);
        }
 }
@@ -2544,7 +2542,7 @@ static void update_cache_size(char *container, struct mdinfo *sra,
        /* make sure there is room for 'blocks' with a bit to spare */
        if (cache < 16 + blocks / disks)
                cache = 16 + blocks / disks;
-       cache /= (4096/512); /* Covert from sectors to pages */
+       cache /= (4096/512); /* Convert from sectors to pages */
 
        if (sra->cache_size < cache)
                subarray_set_num(container, sra, "stripe_cache_size",