Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Dec 2009 14:47:55 GMT
From:      Aditya Sarawgi <truncs@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 171331 for review
Message-ID:  <200912031447.nB3EltWk041841@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=171331

Change 171331 by truncs@aditya on 2009/12/03 14:47:06

	Bring back what the earlier code felt right.

Affected files ...

.. //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/ext2_balloc.c#10 edit

Differences ...

==== //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/ext2_balloc.c#10 (text+ko) ====

@@ -207,10 +207,12 @@
 			bqrelse(bp);
 			continue;
 		}
-		if (pref == 0) { 
+		if (pref == 0) {
 			EXT2_LOCK(ump);
-			pref = ext2_blkpref(ip, lbn, 0, (int32_t *)0, 0);
-		} else 
+			pref = ext2_blkpref(ip, lbn, indirs[i].in_off, bap,
+						bp->b_lblkno);
+
+		} else
 			EXT2_LOCK(ump);
 		error =  ext2_alloc(ip, lbn, pref, (int)fs->e2fs_bsize, cred, &newb);
 		if(error) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912031447.nB3EltWk041841>