btrfs-progs: Remove cleanup-timer code for btrfs-convert
authorZhao Lei <zhaolei@cn.fujitsu.com>
Mon, 27 Jul 2015 12:24:28 +0000 (20:24 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 31 Aug 2015 17:25:10 +0000 (19:25 +0200)
No need to close timer handle afain in subthread-close-callback,
it is closed by task_stop() automatically.

This patch also add a fflush() to make log output on time.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-convert.c

index c97068e969375714401999b6016b1a99cbe2816e..917bbc1b74d2947f1f158ab5b51df7cdb7f3ac91 100644 (file)
@@ -71,10 +71,8 @@ static void *print_copied_inodes(void *p)
 
 static int after_copied_inodes(void *p)
 {
-       struct task_ctx *priv = p;
-
        printf("\n");
-       task_period_stop(priv->info);
+       fflush(stdout);
 
        return 0;
 }