PERFORCE change 166639 for review

Aditya Sarawgi truncs at FreeBSD.org
Mon Jul 27 17:34:55 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=166639

Change 166639 by truncs at aditya on 2009/07/27 17:34:19

	Remove debugging uprintfs 

Affected files ...

.. //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_alloc.c#33 edit

Differences ...

==== //depot/projects/soc2009/soc_ext2fs/src/sys/gnu/fs/ext2fs/ext2_alloc.c#33 (text+ko) ====

@@ -130,7 +130,6 @@
                 ip->i_blocks += btodb(fs->e2fs_bsize);
                 ip->i_flag |= IN_CHANGE | IN_UPDATE;
                 *bnp = bno;
-		uprintf("Allocation of block successfull");
                 return (0);
         }
 nospace:
@@ -346,15 +345,12 @@
 	 * else obtain it using ino_to_cg. The preferred inode is always the next
 	 * inode.
 	 */
-	uprintf("a\n");
 	if((mode & IFMT) == IFDIR)
 		cg = ext2_dirpref(fs);
 	else
 		cg = ino_to_cg(fs, pip->i_number);
 	ipref = cg * fs->e2fs->e2fs_ipg + 1;
-	uprintf("b\n");
         ino = (ino_t)ext2_hashalloc(pip, cg, (long)ipref, mode, ext2_nodealloccg);
-	uprintf("c\n");
 
 	if (ino == 0) 
 		goto noinodes;
@@ -725,12 +721,10 @@
 	struct buf *bp;
 	int error, start, len, loc, map, i;
 	char *ibp;
-	uprintf("1\n");
 	ipref--; /* to avoid a lot of (ipref -1) */
 	if (ipref == -1)
 		ipref = 0;
 	fs = ip->i_e2fs;
-	uprintf("2\n");
 	if (fs->e2fs_gd[cg].ext2bgd_nifree == 0)
 		return (0);
 	lock_super(DEVVP(ip)); 
@@ -740,7 +734,6 @@
 	if (error) {
 		brelse(bp);
 		unlock_super(DEVVP(ip));  
-		uprintf("3\n");
 		return (0);
 	}
 	ibp = (char *)bp->b_data;
@@ -782,9 +775,7 @@
 	if ((mode & IFMT) == IFDIR) {
 		fs->e2fs_gd[cg].ext2bgd_ndirs++;
 	}
-	uprintf("4\n");
 	bdwrite(bp);
-	uprintf("%d\n", fs->e2fs_gd[cg].ext2bgd_nifree);
 	unlock_super(DEVVP(ip));
 	return (cg * fs->e2fs->e2fs_ipg + ipref +1);
 }


More information about the p4-projects mailing list