From patchwork Wed Sep 2 09:51:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaolei X-Patchwork-Id: 7110261 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 5E504BEEC1 for ; Wed, 2 Sep 2015 09:53:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8314E205EF for ; Wed, 2 Sep 2015 09:53:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A955E204A9 for ; Wed, 2 Sep 2015 09:53:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753840AbbIBJxQ (ORCPT ); Wed, 2 Sep 2015 05:53:16 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:32895 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751233AbbIBJxF (ORCPT ); Wed, 2 Sep 2015 05:53:05 -0400 X-IronPort-AV: E=Sophos;i="5.15,520,1432569600"; d="scan'208";a="100279243" Received: from unknown (HELO edo.cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 02 Sep 2015 17:56:07 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (localhost.localdomain [127.0.0.1]) by edo.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id t829qseG024412 for ; Wed, 2 Sep 2015 17:52:54 +0800 Received: from localhost.localdomain (10.167.226.114) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server id 14.3.181.6; Wed, 2 Sep 2015 17:53:02 +0800 From: Zhao Lei To: CC: Zhao Lei Subject: [PATCH v2 3/3] btrfs-progs: Fix some spelling typo in chunk-recover.c Date: Wed, 2 Sep 2015 17:51:25 +0800 Message-ID: <54cbdbd004a4880d60d378a0fb10dced288cb94b.1441187401.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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Only comment, not big issue. And remove no-use aggument in block_group_free_all_extent(). Signed-off-by: Zhao Lei --- chunk-recover.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/chunk-recover.c b/chunk-recover.c index 7698ee0..1d8fe81 100644 --- a/chunk-recover.c +++ b/chunk-recover.c @@ -259,7 +259,7 @@ again: list_del_init(&exist->list); free(exist); /* - * We must do seach again to avoid the following cache. + * We must do search again to avoid the following cache. * /--old bg 1--//--old bg 2--/ * /--new bg--/ */ @@ -1092,8 +1092,7 @@ err: return ret; } -static int block_group_free_all_extent(struct btrfs_trans_handle *trans, - struct btrfs_root *root, +static int block_group_free_all_extent(struct btrfs_root *root, struct block_group_record *bg) { struct btrfs_block_group_cache *cache; @@ -1133,7 +1132,7 @@ static int remove_chunk_extent_item(struct btrfs_trans_handle *trans, if (ret) return ret; - ret = block_group_free_all_extent(trans, root, chunk->bg_rec); + ret = block_group_free_all_extent(root, chunk->bg_rec); if (ret) return ret; } @@ -2310,7 +2309,7 @@ static void validate_rebuild_chunks(struct recover_control *rc) } /* - * Return 0 when succesful, < 0 on error and > 0 if aborted by user + * Return 0 when successful, < 0 on error and > 0 if aborted by user */ int btrfs_recover_chunk_tree(char *path, int verbose, int yes) {