Skip to contentSkip to conversation

GFS2: jumping to wrong label?

PATCH Steven Whitehouse 1 participant 1 message Aug 24, 2009 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

Thanks for spotting & fixing that. Now in the -nmw git tree. Thanks,

Steve.

Quoted 19 lines · Roel Kluin

Also a gfs2_glock_dq() is required here.

---
I found this by static code analysis, Is it correct? please review.

fs/gfs2/ops_inode.c +1 -1
index f8bd20b..ce551f8 100644
@@ -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)