summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-09-25 02:39:39 +0000
committerjeff <jeff@FreeBSD.org>2002-09-25 02:39:39 +0000
commit004a26186ffced2872bfe818d0cda9caa0bdf9c3 (patch)
treedeaabdb49178722c03b51d40e69e058c24f167b0 /sys/nfsserver
parent5c7f8a426d77fd9157454ef8c03ad4298759b909 (diff)
downloadFreeBSD-src-004a26186ffced2872bfe818d0cda9caa0bdf9c3.zip
FreeBSD-src-004a26186ffced2872bfe818d0cda9caa0bdf9c3.tar.gz
- Use incore() instead of gbincore() so we don't have to acquire the
vnode interlock.
Diffstat (limited to 'sys/nfsserver')
-rw-r--r--sys/nfsserver/nfs_serv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c
index edf7575..feeadf5 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);
OpenPOWER on IntegriCloud