From d3b85e1c8b39cc3a629e386a7d342a90667c4e9d Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Wed, 25 Sep 2002 02:39:39 +0000 Subject: [PATCH] - Use incore() instead of gbincore() so we don't have to acquire the vnode interlock. --- sys/nfsserver/nfs_serv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index edf757528805..feeadf5baade 100644 --- a/sys/nfsserver/nfs_serv.c +++ b/sys/nfsserver/nfs_serv.c @@ -3701,7 +3701,7 @@ nfsrv_commit(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, * should not be set if B_INVAL is set there could be * a race here since we haven't locked the buffer). */ - if ((bp = gbincore(vp, lblkno)) != NULL && + if ((bp = incore(vp, lblkno)) != NULL && (bp->b_flags & (B_DELWRI|B_INVAL)) == B_DELWRI) { if (BUF_LOCK(bp, LK_EXCLUSIVE | LK_NOWAIT)) { BUF_LOCK(bp, LK_EXCLUSIVE | LK_SLEEPFAIL);