svn commit: r217584 - head/sys/fs/ext2fs
John Baldwin
jhb at FreeBSD.org
Wed Jan 19 16:52:22 UTC 2011
Author: jhb
Date: Wed Jan 19 16:52:22 2011
New Revision: 217584
URL: http://svn.freebsd.org/changeset/base/217584
Log:
Move calculation of 'bmask' earlier to match it's current location in
ufs_lookup().
Modified:
head/sys/fs/ext2fs/ext2_lookup.c
Modified: head/sys/fs/ext2fs/ext2_lookup.c
==============================================================================
--- head/sys/fs/ext2fs/ext2_lookup.c Wed Jan 19 16:48:07 2011 (r217583)
+++ head/sys/fs/ext2fs/ext2_lookup.c Wed Jan 19 16:52:22 2011 (r217584)
@@ -325,6 +325,8 @@ ext2_lookup(ap)
*vpp = NULL;
vdp = ap->a_dvp;
dp = VTOI(vdp);
+ bmask = VFSTOEXT2(vdp->v_mount)->um_mountp->mnt_stat.f_iosize - 1;
+
/*
* We now have a segment name to search for, and a directory to search.
*/
@@ -359,7 +361,6 @@ ext2_lookup(ap)
* profiling time and hence has been removed in the interest
* of simplicity.
*/
- bmask = VFSTOEXT2(vdp->v_mount)->um_mountp->mnt_stat.f_iosize - 1;
if (nameiop != LOOKUP || i_diroff == 0 ||
i_diroff > dp->i_size) {
entryoffsetinblock = 0;
More information about the svn-src-all
mailing list