diff options
author | phk <phk@FreeBSD.org> | 2003-07-04 12:16:33 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-07-04 12:16:33 +0000 |
commit | dc3d80bafd420197c73aea986dd87516eac48b3a (patch) | |
tree | a967fb98ec25eea7f657fdf348715bf24af4c694 /sys/ufs | |
parent | d2204f0245e166d0bbab410a5747d4466478282e (diff) | |
download | FreeBSD-src-dc3d80bafd420197c73aea986dd87516eac48b3a.zip FreeBSD-src-dc3d80bafd420197c73aea986dd87516eac48b3a.tar.gz |
We just cached the inode pointer, no need to call VTOI() again.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 964a468..1608260 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -2093,7 +2093,7 @@ ufsfifo_read(ap) ip = VTOI(ap->a_vp); if ((ap->a_vp->v_mount->mnt_flag & MNT_NOATIME) == 0 && ip != NULL && (uio->uio_resid != resid || (error == 0 && resid != 0))) - VTOI(ap->a_vp)->i_flag |= IN_ACCESS; + ip->i_flag |= IN_ACCESS; return (error); } @@ -2118,7 +2118,7 @@ ufsfifo_write(ap) error = VOCALL(fifo_vnodeop_p, VOFFSET(vop_write), ap); ip = VTOI(ap->a_vp); if (ip != NULL && (uio->uio_resid != resid || (error == 0 && resid != 0))) - VTOI(ap->a_vp)->i_flag |= IN_CHANGE | IN_UPDATE; + ip->i_flag |= IN_CHANGE | IN_UPDATE; return (error); } |