Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3142673imu; Wed, 7 Nov 2018 05:51:29 -0800 (PST) X-Google-Smtp-Source: AJdET5dY5JURPU0Kr/a8osSrzRT89vogc64fBb/K9exiUxmY0cqRxO/BjYF67MMsEIVARgEzsYnu X-Received: by 2002:a62:7d10:: with SMTP id y16-v6mr266915pfc.245.1541598689189; Wed, 07 Nov 2018 05:51:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541598689; cv=none; d=google.com; s=arc-20160816; b=xgXZnXo9yK8/0D9kvHNV6n/TR+auYk0AQL1Pxgxk5x7kMGVRVejJxviNwXD9uZRY38 ouzZCySs6jUbwXItktghZ/enFeHl2MJAfv1nJxTAckiyAtreXTXQTdb+os3A3if1s5Xp IBg7JJIxe3pFQtBY137/+Lz7xMd1sIJjKksXVZtpJd/4ljPw0Z6/W1T/UTSYF+FNIaQx dIHvrgHVyaEN3l1DJsV2oSMKxmfkXQ17MtsK5rAo1GxqDasZa/ebFtBFqw/3yoHptEpo Ypc1pz7z7fWP46eWNGgKt7cWS/dnagdH7B10p8brQCGMCXjI5YK8r0I72s348lE019WM rsLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0V9Sspl+c6EYN08kCnTRSSKuRrtGL2P2bvcL7NdynsU=; b=xxUWQyZfnhBKoC/jdslPHTE30ElJ955Nz46DmUmouc97G0ROW1vMVjvr8DWFVsdKcd zcaLAz1xy/IcDIkb0hwti23JoFABwaRIW9x1Q4YGYduHOfNqp1N2ihA4JbzT+S1r7xq1 gViS5+yJWPiEnbDoBSjyy71hGJnRX3WCEdqmNpXqkFLI8Ptq95D6XdEcpoxrbOgAPyzr yxAxDMiHiL3QRebxDcwNDNI30TcbbFsJGSA6hLykPDuCCfUS1V4d3Ci3TaQd8NG27l+z u6e6GiTWZPQQd1HOI7Z9VK4XkaTGyX9u+S/BQwGy5/FOqPaU2vl5qndyB4HrwTBv1Xuw IqMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d69-v6si661132pfd.281.2018.11.07.05.51.14; Wed, 07 Nov 2018 05:51:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730846AbeKGXUq (ORCPT + 99 others); Wed, 7 Nov 2018 18:20:46 -0500 Received: from mx2.suse.de ([195.135.220.15]:36660 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727752AbeKGXUq (ORCPT ); Wed, 7 Nov 2018 18:20:46 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 7F0CFB603; Wed, 7 Nov 2018 13:50:17 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id C95CE1E099F; Wed, 7 Nov 2018 14:50:16 +0100 (CET) Date: Wed, 7 Nov 2018 14:50:16 +0100 From: Jan Kara To: Vasily Averin Cc: linux-ext4@vger.kernel.org, Theodore Ts'o , Andreas Dilger , linux-kernel@vger.kernel.org, Jan Kara , Kalpak Shah Subject: Re: [PATCH 6/7] ext4: lost brelse in ext4_xattr_move_to_block() Message-ID: <20181107135016.GE25758@quack2.suse.cz> References: <76da5ae3-274d-efa4-58bb-6cd280763a37@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <76da5ae3-274d-efa4-58bb-6cd280763a37@virtuozzo.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 31-10-18 22:13:00, Vasily Averin wrote: > Fixes 3f2571c1f91f ("ext4: factor out xattr moving") > cc: Jan Kara > however issue was present in original ext4_expand_extra_isize_ea() > Fixes 6dd4ee7cab7e ("ext4: Expand extra_inodes space per ...") # 2.6.23 > cc: Kalpak Shah > > Signed-off-by: Vasily Averin Good catch. Thanks for the fix. The patch looks good. You can add: Reviewed-by: Jan Kara Honza > --- > fs/ext4/xattr.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c > index 07b9a335c8eb..5c9bc0d85cc0 100644 > --- a/fs/ext4/xattr.c > +++ b/fs/ext4/xattr.c > @@ -2617,6 +2617,8 @@ static int ext4_xattr_move_to_block(handle_t *handle, struct inode *inode, > kfree(buffer); > if (is) > brelse(is->iloc.bh); > + if (bs) > + brelse(bs->bh); > kfree(is); > kfree(bs); > > -- > 2.17.1 > -- Jan Kara SUSE Labs, CR