浏览代码

GFS2: jumping to wrong label?

Also a gfs2_glock_dq() is required here.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Roel Kluin 16 年之前
父节点
当前提交
cd0120751d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/gfs2/ops_inode.c

+ 1 - 1
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);
 	error = gfs2_trans_begin(sdp, 2*RES_DINODE + RES_LEAF + RES_RG_BIT, 0);
 	if (error)
 	if (error)
-		goto out_rgrp;
+		goto out_gunlock;
 
 
 	error = gfs2_dir_del(dip, &dentry->d_name);
 	error = gfs2_dir_del(dip, &dentry->d_name);
         if (error)
         if (error)