From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Mon, 24 Aug 2009 09:55:07 +0100 Subject: [Cluster-devel] Re: [PATCH] GFS2: jumping to wrong label? In-Reply-To: <4A902A52.50904@gmail.com> References: <4A902A52.50904@gmail.com> Message-ID: <1251104107.3406.1.camel@localhost.localdomain> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Thanks for spotting & fixing that. Now in the -nmw git tree. Thanks, Steve. On Sat, 2009-08-22 at 19:26 +0200, Roel Kluin wrote: > Also a gfs2_glock_dq() is required here. > > Signed-off-by: Roel Kluin > --- > I found this by static code analysis, Is it correct? please review. > > diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c > index f8bd20b..ce551f8 100644 > --- a/fs/gfs2/ops_inode.c > +++ b/fs/gfs2/ops_inode.c > @@ -349,7 +349,7 @@ static int gfs2_unlink(struct inode *dir, struct dentry *dentry) > > error = gfs2_trans_begin(sdp, 2*RES_DINODE + RES_LEAF + RES_RG_BIT, 0); > if (error) > - goto out_rgrp; > + goto out_gunlock; > > error = gfs2_dir_del(dip, &dentry->d_name); > if (error)