Date: Wed, 19 Jan 2011 16:52:22 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r217584 - head/sys/fs/ext2fs Message-ID: <201101191652.p0JGqMnO082605@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101191652.p0JGqMnO082605>