View | Details | Raw Unified | Return to bug 91879
Collapse All | Expand All

(-)sys/fs/hpfs/hpfs_vnops.c (-1 / +5 lines)
Lines 600-611 Link Here
600
600
601
	dprintf(("hpfs_reclaim(0x%x0): \n", hp->h_no));
601
	dprintf(("hpfs_reclaim(0x%x0): \n", hp->h_no));
602
602
603
	/*
604
	 * Destroy the vm object and flush associated pages.
605
	 */
606
	vnode_destroy_vobject(vp);
607
603
	vfs_hash_remove(vp);
608
	vfs_hash_remove(vp);
604
609
605
	mtx_destroy(&hp->h_interlock);
610
	mtx_destroy(&hp->h_interlock);
606
611
607
	vp->v_data = NULL;
612
	vp->v_data = NULL;
608
	vnode_destroy_vobject(vp);
609
613
610
	FREE(hp, M_HPFSNO);
614
	FREE(hp, M_HPFSNO);
611
615
(-)sys/fs/msdosfs/msdosfs_denode.c (-1 / +4 lines)
Lines 549-554 Link Here
549
	if (prtactive && vrefcnt(vp) != 0)
549
	if (prtactive && vrefcnt(vp) != 0)
550
		vprint("msdosfs_reclaim(): pushing active", vp);
550
		vprint("msdosfs_reclaim(): pushing active", vp);
551
	/*
551
	/*
552
	 * Destroy the vm object and flush associated pages.
553
	 */
554
	vnode_destroy_vobject(vp);
555
	/*
552
	 * Remove the denode from its hash chain.
556
	 * Remove the denode from its hash chain.
553
	 */
557
	 */
554
	vfs_hash_remove(vp);
558
	vfs_hash_remove(vp);
Lines 560-566 Link Here
560
#endif
564
#endif
561
	FREE(dep, M_MSDOSFSNODE);
565
	FREE(dep, M_MSDOSFSNODE);
562
	vp->v_data = NULL;
566
	vp->v_data = NULL;
563
	vnode_destroy_vobject(vp);
564
567
565
	return (0);
568
	return (0);
566
}
569
}
(-)sys/fs/ntfs/ntfs_vnops.c (-1 / +5 lines)
Lines 248-253 Link Here
248
	if (ntfs_prtactive && vrefcnt(vp) != 0)
248
	if (ntfs_prtactive && vrefcnt(vp) != 0)
249
		vprint("ntfs_reclaim: pushing active", vp);
249
		vprint("ntfs_reclaim: pushing active", vp);
250
250
251
	/*
252
	 * Destroy the vm object and flush associated pages.
253
	 */
254
	vnode_destroy_vobject(vp);
255
251
	if ((error = ntfs_ntget(ip)) != 0)
256
	if ((error = ntfs_ntget(ip)) != 0)
252
		return (error);
257
		return (error);
253
	
258
	
Lines 255-261 Link Here
255
	ntfs_frele(fp);
260
	ntfs_frele(fp);
256
	ntfs_ntput(ip);
261
	ntfs_ntput(ip);
257
	vp->v_data = NULL;
262
	vp->v_data = NULL;
258
	vnode_destroy_vobject(vp);
259
263
260
	return (0);
264
	return (0);
261
}
265
}
(-)sys/fs/nwfs/nwfs_node.c (-1 / +5 lines)
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);
(-)sys/fs/smbfs/smbfs_node.c (-1 / +4 lines)
Lines 319-324 Link Here
319
	KASSERT((np->n_flag & NOPEN) == 0, ("file not closed before reclaim"));
319
	KASSERT((np->n_flag & NOPEN) == 0, ("file not closed before reclaim"));
320
320
321
	smbfs_hash_lock(smp, td);
321
	smbfs_hash_lock(smp, td);
322
	/*
323
	 * Destroy the vm object and flush associated pages.
324
	 */
325
	vnode_destroy_vobject(vp);
322
326
323
	dvp = (np->n_parent && (np->n_flag & NREFPARENT)) ?
327
	dvp = (np->n_parent && (np->n_flag & NREFPARENT)) ?
324
	    np->n_parent : NULL;
328
	    np->n_parent : NULL;
Lines 330-336 Link Here
330
		smp->sm_root = NULL;
334
		smp->sm_root = NULL;
331
	}
335
	}
332
	vp->v_data = NULL;
336
	vp->v_data = NULL;
333
	vnode_destroy_vobject(vp);
334
	smbfs_hash_unlock(smp, td);
337
	smbfs_hash_unlock(smp, td);
335
	if (np->n_name)
338
	if (np->n_name)
336
		smbfs_name_free(np->n_name);
339
		smbfs_name_free(np->n_name);
(-)sys/fs/udf/udf_vnops.c (-1 / +5 lines)
Lines 965-970 Link Here
965
	vp = a->a_vp;
965
	vp = a->a_vp;
966
	unode = VTON(vp);
966
	unode = VTON(vp);
967
967
968
	/*
969
	 * Destroy the vm object and flush associated pages.
970
	 */
971
	vnode_destroy_vobject(vp);
972
968
	if (unode != NULL) {
973
	if (unode != NULL) {
969
		vfs_hash_remove(vp);
974
		vfs_hash_remove(vp);
970
975
Lines 973-979 Link Here
973
		uma_zfree(udf_zone_node, unode);
978
		uma_zfree(udf_zone_node, unode);
974
		vp->v_data = NULL;
979
		vp->v_data = NULL;
975
	}
980
	}
976
	vnode_destroy_vobject(vp);
977
981
978
	return (0);
982
	return (0);
979
}
983
}
(-)sys/isofs/cd9660/cd9660_node.c (-1 / +4 lines)
Lines 98-103 Link Here
98
	if (prtactive && vrefcnt(vp) != 0)
98
	if (prtactive && vrefcnt(vp) != 0)
99
		vprint("cd9660_reclaim: pushing active", vp);
99
		vprint("cd9660_reclaim: pushing active", vp);
100
	/*
100
	/*
101
	 * Destroy the vm object and flush associated pages.
102
	 */
103
	vnode_destroy_vobject(vp);
104
	/*
101
	 * Remove the inode from its hash chain.
105
	 * Remove the inode from its hash chain.
102
	 */
106
	 */
103
	vfs_hash_remove(vp);
107
	vfs_hash_remove(vp);
Lines 109-115 Link Here
109
		vrele(ip->i_mnt->im_devvp);
113
		vrele(ip->i_mnt->im_devvp);
110
	FREE(vp->v_data, M_ISOFSNODE);
114
	FREE(vp->v_data, M_ISOFSNODE);
111
	vp->v_data = NULL;
115
	vp->v_data = NULL;
112
	vnode_destroy_vobject(vp);
113
	return (0);
116
	return (0);
114
}
117
}
115
118
(-)sys/nfsclient/nfs_node.c (-1 / +5 lines)
Lines 211-216 Link Here
211
	if (prtactive && vrefcnt(vp) != 0)
211
	if (prtactive && vrefcnt(vp) != 0)
212
		vprint("nfs_reclaim: pushing active", vp);
212
		vprint("nfs_reclaim: pushing active", vp);
213
213
214
	/*
215
	 * Destroy the vm object and flush associated pages.
216
	 */
217
	vnode_destroy_vobject(vp);
218
214
	vfs_hash_remove(vp);
219
	vfs_hash_remove(vp);
215
220
216
	/*
221
	/*
Lines 232-237 Link Here
232
237
233
	uma_zfree(nfsnode_zone, vp->v_data);
238
	uma_zfree(nfsnode_zone, vp->v_data);
234
	vp->v_data = NULL;
239
	vp->v_data = NULL;
235
	vnode_destroy_vobject(vp);
236
	return (0);
240
	return (0);
237
}
241
}

Return to bug 91879