|
Lines 255-260
Link Here
|
| 255 |
struct thread *td = ap->a_td; |
255 |
struct thread *td = ap->a_td; |
| 256 |
|
256 |
|
| 257 |
NCPVNDEBUG("%s,%d\n", np->n_name, vrefcnt(vp)); |
257 |
NCPVNDEBUG("%s,%d\n", np->n_name, vrefcnt(vp)); |
|
|
258 |
/* |
| 259 |
* Destroy the vm object and flush associated pages. |
| 260 |
*/ |
| 261 |
vnode_destroy_vobject(vp); |
| 262 |
|
| 258 |
if (np->n_flag & NREFPARENT) { |
263 |
if (np->n_flag & NREFPARENT) { |
| 259 |
np->n_flag &= ~NREFPARENT; |
264 |
np->n_flag &= ~NREFPARENT; |
| 260 |
if (nwfs_lookupnp(nmp, np->n_parent, td, &dnp) == 0) { |
265 |
if (nwfs_lookupnp(nmp, np->n_parent, td, &dnp) == 0) { |
|
Lines 270-276
Link Here
|
| 270 |
nmp->n_root = NULL; |
275 |
nmp->n_root = NULL; |
| 271 |
} |
276 |
} |
| 272 |
vp->v_data = NULL; |
277 |
vp->v_data = NULL; |
| 273 |
vnode_destroy_vobject(vp); |
|
|
| 274 |
FREE(np, M_NWNODE); |
278 |
FREE(np, M_NWNODE); |
| 275 |
if (dvp) { |
279 |
if (dvp) { |
| 276 |
vrele(dvp); |
280 |
vrele(dvp); |