From: Zhao Lei Date: Mon, 27 Jul 2015 12:24:28 +0000 (+0800) Subject: btrfs-progs: Remove cleanup-timer code for btrfs-convert X-Git-Tag: upstream/4.16.1~2092 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=867352bad9ecb6a08afe2668aeeacbd626400d4c;p=platform%2Fupstream%2Fbtrfs-progs.git 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 --- diff --git a/btrfs-convert.c b/btrfs-convert.c index c97068e..917bbc1 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; }