patch-2.4.20 linux-2.4.20/fs/ext3/ialloc.c

Next file: linux-2.4.20/fs/ext3/inode.c
Previous file: linux-2.4.20/fs/ext3/fsync.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/fs/ext3/ialloc.c linux-2.4.20/fs/ext3/ialloc.c
@@ -392,7 +392,7 @@
 
 	err = -ENOSPC;
 	if (!gdp)
-		goto fail;
+		goto out;
 
 	err = -EIO;
 	bitmap_nr = load_inode_bitmap (sb, i);
@@ -523,9 +523,10 @@
 	return inode;
 
 fail:
+	ext3_std_error(sb, err);
+out:
 	unlock_super(sb);
 	iput(inode);
-	ext3_std_error(sb, err);
 	return ERR_PTR(err);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)