From 867352bad9ecb6a08afe2668aeeacbd626400d4c Mon Sep 17 00:00:00 2001 From: Zhao Lei Date: Mon, 27 Jul 2015 20:24:28 +0800 Subject: [PATCH] btrfs-progs: Remove cleanup-timer code for btrfs-convert 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 Signed-off-by: David Sterba --- btrfs-convert.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/btrfs-convert.c b/btrfs-convert.c index c97068e9..917bbc1b 100644 --- a/btrfs-convert.c +++ b/btrfs-convert.c @@ -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; } -- 2.34.1