From b941a2beb73f3a8aeea1b0063e33fd0188d4a2ea Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 4 Jul 2003 12:16:33 +0000 Subject: [PATCH] We just cached the inode pointer, no need to call VTOI() again. --- sys/ufs/ufs/ufs_vnops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 964a46873ece..16082602a935 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); }