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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to