|
|
| version 1.10, 2004/03/01 06:33:22 | version 1.11, 2004/04/22 17:56:44 |
|---|---|
| Line 75 SYSCTL_PROC(_vfs_nwfs, OID_AUTO, vnprint | Line 75 SYSCTL_PROC(_vfs_nwfs, OID_AUTO, vnprint |
| NULL, 0, nwfs_sysctl_vnprint, "S,vnlist", "vnode hash"); | NULL, 0, nwfs_sysctl_vnprint, "S,vnlist", "vnode hash"); |
| void | void |
| nwfs_hash_init(void) { | nwfs_hash_init(void) |
| { | |
| nwhashtbl = hashinit(desiredvnodes, M_NWFSHASH, &nwnodehash); | nwhashtbl = hashinit(desiredvnodes, M_NWFSHASH, &nwnodehash); |
| lockinit(&nwhashlock, 0, "nwfshl", 0, 0); | lockinit(&nwhashlock, 0, "nwfshl", 0, 0); |
| } | } |
| void | void |
| nwfs_hash_free(void) { | nwfs_hash_free(void) |
| { | |
| free(nwhashtbl, M_NWFSHASH); | free(nwhashtbl, M_NWFSHASH); |
| } | } |
| int | int |
| nwfs_sysctl_vnprint(SYSCTL_HANDLER_ARGS) { | nwfs_sysctl_vnprint(SYSCTL_HANDLER_ARGS) |
| { | |
| struct nwnode *np; | struct nwnode *np; |
| struct nwnode_hash_head *nhpp; | struct nwnode_hash_head *nhpp; |
| struct vnode *vp; | struct vnode *vp; |
| Line 197 rescan: | Line 200 rescan: |
| int | int |
| nwfs_lookupnp(struct nwmount *nmp, ncpfid fid, struct thread *td, | nwfs_lookupnp(struct nwmount *nmp, ncpfid fid, struct thread *td, |
| struct nwnode **npp) | struct nwnode **npp) |
| { | { |
| int error; | int error; |
| Line 209 nwfs_lookupnp(struct nwmount *nmp, ncpfi | Line 212 nwfs_lookupnp(struct nwmount *nmp, ncpfi |
| /* | /* |
| * Free nwnode, and give vnode back to system | * Free nwnode, and give vnode back to system |
| * | |
| * nwfs_reclaim(struct vnode *a_vp, struct thread *a_td) | |
| */ | */ |
| int | int |
| nwfs_reclaim(ap) | nwfs_reclaim(struct vop_reclaim_args *ap) |
| struct vop_reclaim_args /* { | |
| struct vnode *a_vp; | |
| struct thread *a_td; | |
| } */ *ap; | |
| { | { |
| struct vnode *dvp = NULL, *vp = ap->a_vp; | struct vnode *dvp = NULL, *vp = ap->a_vp; |
| struct nwnode *dnp, *np = VTONW(vp); | struct nwnode *dnp, *np = VTONW(vp); |
| Line 246 nwfs_reclaim(ap) | Line 247 nwfs_reclaim(ap) |
| return (0); | return (0); |
| } | } |
| /* | |
| * nwfs_inactive(struct vnode *a_vp, struct thread *a_td) | |
| */ | |
| int | int |
| nwfs_inactive(ap) | nwfs_inactive(struct vop_inactive_args *ap) |
| struct vop_inactive_args /* { | |
| struct vnode *a_vp; | |
| struct thread *a_td; | |
| } */ *ap; | |
| { | { |
| struct thread *td = ap->a_td; | struct thread *td = ap->a_td; |
| struct ucred *cred; | struct ucred *cred; |