summaryrefslogtreecommitdiffstats
path: root/sys/fs/nfs
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2010-12-24 21:31:18 +0000
committerrmacklem <rmacklem@FreeBSD.org>2010-12-24 21:31:18 +0000
commit8276de4a81a666e568944ecaf0db30a851b47786 (patch)
tree4c5398fc747079f8082afbff3e720d8edb2725c4 /sys/fs/nfs
parentce0da79f1cca2eefdae9218bb9d265aef91ad5eb (diff)
downloadFreeBSD-src-8276de4a81a666e568944ecaf0db30a851b47786.zip
FreeBSD-src-8276de4a81a666e568944ecaf0db30a851b47786.tar.gz
Add an argument to nfsvno_getattr() in the experimental
NFS server, so that it can avoid calling VOP_ISLOCKED() when the vnode is known to be locked. This will allow LK_SHARED to be used for these cases, which happen to be all the cases that can use LK_SHARED. This does not fix any bug, but it reduces the number of calls to VOP_ISLOCKED() and prepares the code so that it can be switched to using LK_SHARED in a future patch. Reviewed by: kib MFC after: 2 weeks
Diffstat (limited to 'sys/fs/nfs')
-rw-r--r--sys/fs/nfs/nfs_var.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfs/nfs_var.h b/sys/fs/nfs/nfs_var.h
index 0fdb61d..244daf3 100644
--- a/sys/fs/nfs/nfs_var.h
+++ b/sys/fs/nfs/nfs_var.h
@@ -510,7 +510,7 @@ void ncl_invalcaches(vnode_t);
/* nfs_nfsdport.c */
int nfsvno_getattr(vnode_t, struct nfsvattr *, struct ucred *,
- NFSPROC_T *);
+ NFSPROC_T *, int);
int nfsvno_setattr(vnode_t, struct nfsvattr *, struct ucred *,
NFSPROC_T *, struct nfsexstuff *);
int nfsvno_getfh(vnode_t, fhandle_t *, NFSPROC_T *);
OpenPOWER on IntegriCloud