summaryrefslogtreecommitdiffstats
path: root/sys/nwfs/nwfs_node.h
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>2000-10-02 09:49:04 +0000
committerbp <bp@FreeBSD.org>2000-10-02 09:49:04 +0000
commitaf5c59dc4ff3f56184587c5798871262a8a7a217 (patch)
treef561b87c9c02b46312db8fbd1949d05303c8e94d /sys/nwfs/nwfs_node.h
parent72e68d3b765994ed27cdd33c3f725fcc3328cac3 (diff)
downloadFreeBSD-src-af5c59dc4ff3f56184587c5798871262a8a7a217.zip
FreeBSD-src-af5c59dc4ff3f56184587c5798871262a8a7a217.tar.gz
Protect hash data with lock manager instead of home grown one.
Replace shared lock on vnode with exclusive one. It shouldn't impact perfomance as NCP protocol doesn't support outstanding requests. Do not hold simple lock on vnode for long period of time. Add functionality to the nwfs_print() routine.
Diffstat (limited to 'sys/nwfs/nwfs_node.h')
-rw-r--r--sys/nwfs/nwfs_node.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/nwfs/nwfs_node.h b/sys/nwfs/nwfs_node.h
index 4f705b4..1bcaee7 100644
--- a/sys/nwfs/nwfs_node.h
+++ b/sys/nwfs/nwfs_node.h
@@ -43,6 +43,7 @@
#define NMODIFIED 0x0004 /* bogus, until async IO implemented */
#define NNEW 0x0008 /* vnode has been allocated */
#define NVOLUME 0x0010 /* vnode references a volume */
+#define NSHOULDFREE 0x0020 /* vnode should be removed from hash */
struct nwnode {
LIST_ENTRY(nwnode) n_hash;
@@ -85,7 +86,8 @@ struct uio;
void nwfs_hash_init(void);
void nwfs_hash_free(void);
int nwfs_allocvp(struct mount *mp, ncpfid fid, struct vnode **vpp);
-int nwfs_lookupnp(struct nwmount *nmp, ncpfid fid, struct nwnode **npp);
+int nwfs_lookupnp(struct nwmount *nmp, ncpfid fid, struct proc *p,
+ struct nwnode **npp);
int nwfs_inactive(struct vop_inactive_args *);
int nwfs_reclaim(struct vop_reclaim_args *);
int nwfs_nget(struct mount *mp, ncpfid fid, struct nw_entry_info *fap,
OpenPOWER on IntegriCloud