Date: Thu, 10 Jun 2010 02:13:23 GMT From: Zheng Liu <lz@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 179377 for review Message-ID: <201006100213.o5A2DNYh097609@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@179377?ac=10 Change 179377 by lz@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006100213.o5A2DNYh097609>