Return-Path: 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 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> Sender: linux-ext4-owner@vger.kernel.org List-ID: 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