PERFORCE change 165428 for review

Aditya Sarawgi truncs at FreeBSD.org
Mon Jun 29 19:05:15 UTC 2009


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

Change 165428 by truncs at aditya on 2009/06/29 19:05:09

	Obtain group descriptor in ext2_dirpref using get_group_desc2.

Affected files ...

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

Differences ...

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

@@ -573,7 +573,7 @@
         maxspace = 0;
         mincg = -1;
         for (cg = 0; cg < fs->e2fs_gcount; cg++) {
-		gdp = (struct ext2_gd *) fs->e2fs_group_desc[cg]->b_data;
+		gdp = get_group_desc2(fs, cg, NULL);
                 if ( gdp->ext2bgd_nifree >= avgifree) {
                         if (mincg == -1 || gdp->ext2bgd_nbfree > maxspace) {
                                 mincg = cg;


More information about the p4-projects mailing list