Make filesystems get rid of their own vnodes vnode_pager object in

VOP_RECLAIM().
This commit is contained in:
Poul-Henning Kamp 2005-01-28 14:42:17 +00:00
parent d4eb29ba71
commit a369f34d76
17 changed files with 17 additions and 0 deletions

View File

@ -1634,6 +1634,7 @@ coda_reclaim(struct vop_reclaim_args *ap)
lockdestroy(&(VTOC(vp)->c_lock));
coda_free(VTOC(vp));
vp->v_data = NULL;
vnode_destroy_vobject(vp);
return (0);
}

View File

@ -220,6 +220,7 @@ cd9660_reclaim(ap)
vrele(ip->i_mnt->im_devvp);
FREE(vp->v_data, M_ISOFSNODE);
vp->v_data = NULL;
vnode_destroy_vobject(vp);
return (0);
}

View File

@ -1634,6 +1634,7 @@ coda_reclaim(struct vop_reclaim_args *ap)
lockdestroy(&(VTOC(vp)->c_lock));
coda_free(VTOC(vp));
vp->v_data = NULL;
vnode_destroy_vobject(vp);
return (0);
}

View File

@ -1053,6 +1053,7 @@ devfs_reclaim(ap)
(vp->v_rdev->si_flags & SI_NAMED))
destroy_dev(vp->v_rdev);
}
vnode_destroy_vobject(vp);
return (0);
}

View File

@ -612,6 +612,7 @@ hpfs_reclaim(ap)
mtx_destroy(&hp->h_interlock);
vp->v_data = NULL;
vnode_destroy_vobject(vp);
FREE(hp, M_HPFSNO);

View File

@ -648,6 +648,7 @@ msdosfs_reclaim(ap)
#endif
FREE(dep, M_MSDOSFSNODE);
vp->v_data = NULL;
vnode_destroy_vobject(vp);
return (0);
}

View File

@ -257,6 +257,7 @@ ntfs_reclaim(ap)
ntfs_frele(fp);
ntfs_ntput(ip);
vp->v_data = NULL;
vnode_destroy_vobject(vp);
return (0);
}

View File

@ -738,6 +738,7 @@ null_reclaim(struct vop_reclaim_args *ap)
}
vp->v_data = NULL;
vp->v_object = NULL;
vp->v_vnlock = &vp->v_lock;
FREE(xp, M_NULLFSNODE);

View File

@ -270,6 +270,7 @@ nwfs_reclaim(ap)
nmp->n_root = NULL;
}
vp->v_data = NULL;
vnode_destroy_vobject(vp);
FREE(np, M_NWNODE);
if (dvp) {
vrele(dvp);

View File

@ -330,6 +330,7 @@ smbfs_reclaim(ap)
smp->sm_root = NULL;
}
vp->v_data = NULL;
vnode_destroy_vobject(vp);
smbfs_hash_unlock(smp, td);
if (np->n_name)
smbfs_name_free(np->n_name);

View File

@ -1048,6 +1048,7 @@ udf_reclaim(struct vop_reclaim_args *a)
uma_zfree(udf_zone_node, unode);
vp->v_data = NULL;
}
vnode_destroy_vobject(vp);
return (0);
}

View File

@ -430,6 +430,7 @@ umap_reclaim(ap)
LIST_REMOVE(xp, umap_hash);
FREE(vp->v_data, M_TEMP);
vp->v_data = NULL;
vp->v_object = NULL;
vrele(lowervp);
return (0);
}

View File

@ -542,5 +542,6 @@ ext2_reclaim(ap)
}
FREE(vp->v_data, M_EXT2NODE);
vp->v_data = 0;
vnode_destroy_vobject(vp);
return (0);
}

View File

@ -542,5 +542,6 @@ ext2_reclaim(ap)
}
FREE(vp->v_data, M_EXT2NODE);
vp->v_data = 0;
vnode_destroy_vobject(vp);
return (0);
}

View File

@ -220,6 +220,7 @@ cd9660_reclaim(ap)
vrele(ip->i_mnt->im_devvp);
FREE(vp->v_data, M_ISOFSNODE);
vp->v_data = NULL;
vnode_destroy_vobject(vp);
return (0);
}

View File

@ -356,5 +356,6 @@ nfs_reclaim(struct vop_reclaim_args *ap)
lockdestroy(&np->n_rslock);
uma_zfree(nfsnode_zone, vp->v_data);
vp->v_data = NULL;
vnode_destroy_vobject(vp);
return (0);
}

View File

@ -179,5 +179,6 @@ ufs_reclaim(ap)
#endif
UFS_IFREE(ump, ip);
vp->v_data = 0;
vnode_destroy_vobject(vp);
return (0);
}