From patchwork Tue Aug 25 06:11:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaolei X-Patchwork-Id: 7068241 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 1458EC05AC for ; Tue, 25 Aug 2015 06:12:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 491482074E for ; Tue, 25 Aug 2015 06:12:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4DC0120251 for ; Tue, 25 Aug 2015 06:12:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754718AbbHYGMr (ORCPT ); Tue, 25 Aug 2015 02:12:47 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:2433 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751196AbbHYGMr (ORCPT ); Tue, 25 Aug 2015 02:12:47 -0400 X-IronPort-AV: E=Sophos;i="5.15,520,1432569600"; d="scan'208";a="99986593" Received: from bogon (HELO edo.cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 25 Aug 2015 14:15:56 +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 t7P6CdvZ015252 for ; Tue, 25 Aug 2015 14:12:39 +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; Tue, 25 Aug 2015 14:12:45 +0800 From: Zhao Lei To: CC: Zhao Lei Subject: [PATCH] btrfs-progs: add missing free operation of raid_map for raid56 Date: Tue, 25 Aug 2015 14:11:07 +0800 Message-ID: <8cbfc51dba83890b0e7e22ef2f9985674294c41f.1440483058.git.zhaolei@cn.fujitsu.com> X-Mailer: git-send-email 1.8.5.1 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 We forgot free raid_map for raid56's map_bio. This patch add it. Signed-off-by: Zhao Lei --- disk-io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/disk-io.c b/disk-io.c index fdcfd6d..46a5a46 100644 --- a/disk-io.c +++ b/disk-io.c @@ -428,6 +428,7 @@ int write_and_map_eb(struct btrfs_trans_handle *trans, ret = write_extent_to_disk(eb); BUG_ON(ret); } + kfree(raid_map); kfree(multi); return 0; }