From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from aserp1040.oracle.com ([141.146.126.69]:40864 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751702AbcHXSZv (ORCPT ); Wed, 24 Aug 2016 14:25:51 -0400 Date: Wed, 24 Aug 2016 11:24:59 -0700 From: Liu Bo To: Filipe Manana Cc: Qu Wenruo , "linux-btrfs@vger.kernel.org" Subject: Re: [PATCH] btrfs: Fix extent map leak in find_first_block_group Message-ID: <20160824182459.GD1361@localhost.localdomain> Reply-To: bo.li.liu@oracle.com References: <20160824041300.20072-1-quwenruo@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Wed, Aug 24, 2016 at 09:54:16AM +0100, Filipe Manana wrote: > On Wed, Aug 24, 2016 at 5:13 AM, Qu Wenruo wrote: > > The following commit introduced the extent map leak: > > commit 6fb37b756acce6d6e045f79c3764206033f617b4 > > Author: Liu Bo > > Date: Wed Jun 22 18:31:27 2016 -0700 > > > > Btrfs: check inconsistence between chunk and block group > > > > This leads to slab warning at rmmod time. > > > > Cc: Liu Bo > > Signed-off-by: Qu Wenruo > > https://patchwork.kernel.org/patch/9288751/ Thanks to all for fixing this. Thanks, -liubo > > > --- > > fs/btrfs/extent-tree.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c > > index c2b81b0..e621823 100644 > > --- a/fs/btrfs/extent-tree.c > > +++ b/fs/btrfs/extent-tree.c > > @@ -9905,6 +9905,7 @@ static int find_first_block_group(struct btrfs_root *root, > > ret = -ENOENT; > > } else { > > ret = 0; > > + free_extent_map(em); > > } > > goto out; > > } > > -- > > 2.7.4 > > > > > > > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > > > -- > Filipe David Manana, > > "People will forget what you said, > people will forget what you did, > but people will never forget how you made them feel."