PERFORCE change 179377 for review
Zheng Liu
lz at FreeBSD.org
Thu Jun 10 02:13:24 UTC 2010
http://p4web.freebsd.org/@@179377?ac=10
Change 179377 by lz at gnehzuil-freebsd on 2010/06/10 02:12:49
Fix a bug in calculating preference.
Affected files ...
.. //depot/projects/soc2010/extfs/src/sys/fs/ext2fs/ext2_alloc.c#23 edit
Differences ...
==== //depot/projects/soc2010/extfs/src/sys/fs/ext2fs/ext2_alloc.c#23 (text+ko) ====
@@ -180,7 +180,6 @@
EXT2_UNLOCK(ump);
bdwrite(bp);
bno = phy_blk(cg, fs) + bno;
- ip->i_next_alloc_goal = bno;
return (bno);
}
@@ -559,6 +558,9 @@
allocated:
if (bno > 0) {
+ ip->i_next_alloc_block = lbn;
+ ip->i_next_alloc_goal = bno;
+
ip->i_blocks += btodb(fs->e2fs_bsize);
ip->i_flag |= IN_CHANGE | IN_UPDATE;
*bnp = bno;
@@ -574,7 +576,7 @@
ioerror:
ext2_fserr(fs, cred->cr_uid, "file system IO error");
uprintf("\n%s: write failed, file system IO error\n", fs->e2fs_fsmnt);
- return EIO;
+ return (EIO);
}
int
More information about the p4-projects
mailing list