PERFORCE change 171331 for review
Aditya Sarawgi
truncs at FreeBSD.org
Thu Dec 3 14:47:56 UTC 2009
http://p4web.freebsd.org/chv.cgi?CH=171331
Change 171331 by truncs at 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) {
More information about the p4-projects
mailing list