diff mbox

btrfs: fix problem of wrong jump after the error occured

Message ID 4B73BAA2.1050106@cn.fujitsu.com (mailing list archive)
State Accepted
Headers show

Commit Message

Miao Xie Feb. 11, 2010, 8:06 a.m. UTC
diff mbox


diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 4deb280..4f230e4 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4501,7 +4501,7 @@  static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
 	err = btrfs_find_free_objectid(trans, root, dir->i_ino, &objectid);
 	if (err) {
 		err = -ENOSPC;
-		goto out_unlock;
+		goto out_fail;
 	inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name,