From patchwork Mon Jul 27 12:24:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaolei X-Patchwork-Id: 6873031 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BBBA9C05AD for ; Mon, 27 Jul 2015 12:26:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 03EAC204AD for ; Mon, 27 Jul 2015 12:26:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 21D4E20520 for ; Mon, 27 Jul 2015 12:26:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752570AbbG0M0S (ORCPT ); Mon, 27 Jul 2015 08:26:18 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:18666 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751723AbbG0M0N (ORCPT ); Mon, 27 Jul 2015 08:26:13 -0400 X-IronPort-AV: E=Sophos;i="5.15,520,1432569600"; d="scan'208";a="98934713" Received: from unknown (HELO edo.cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 27 Jul 2015 20:29:46 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (localhost.localdomain [127.0.0.1]) by edo.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id t6RCOJWO023263 for ; Mon, 27 Jul 2015 20:24:19 +0800 Received: from localhost.localdomain (10.167.226.114) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server id 14.3.181.6; Mon, 27 Jul 2015 20:26:09 +0800 From: Zhaolei To: CC: Zhao Lei Subject: [PATCH v3 3/7] btrfs-progs: Remove cleanup-timer code for btrfs-convert Date: Mon, 27 Jul 2015 20:24:28 +0800 Message-ID: <321b85ad3c9aaeebf92ec41205aa7edcfd9194a3.1437999624.git.zhaolei@cn.fujitsu.com> X-Mailer: git-send-email 1.8.5.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Zhao Lei 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 --- btrfs-convert.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/btrfs-convert.c b/btrfs-convert.c index b89c685..7dfab7d 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; }