Don't hold a reference on the disk vnode for each inode.

This commit is contained in:
Poul-Henning Kamp 2005-03-15 20:50:58 +00:00
parent 358fef538f
commit de68347b1b
5 changed files with 3 additions and 11 deletions

View File

@ -311,7 +311,7 @@ struct hpfsmount {
struct sublock hpm_su;
struct spblock hpm_sp;
struct mount * hpm_mp;
struct vnode * hpm_devvp;
struct vnode * hpm_devvp; /* XXX: loose this, it's in hpfsmount */
struct g_consumer *hpm_cp;
struct bufobj *hpm_bo;
struct cdev *hpm_dev;

View File

@ -517,8 +517,6 @@ hpfs_vget(
if (error || *vpp != NULL)
return (error);
VREF(hp->h_devvp);
error = bread(hpmp->hpm_devvp, ino, FNODESIZE, NOCRED, &bp);
if (error) {
printf("hpfs_vget: can't read ino %d\n",ino);

View File

@ -602,12 +602,6 @@ hpfs_reclaim(ap)
vfs_hash_remove(vp);
/* Purge old data structures associated with the inode. */
if (hp->h_devvp) {
vrele(hp->h_devvp);
hp->h_devvp = NULL;
}
mtx_destroy(&hp->h_interlock);
vp->v_data = NULL;

View File

@ -1268,10 +1268,11 @@ ffs_vget(mp, ino, flags, vpp)
*vpp = NULL;
return (error);
}
/*
* Finish inode initialization.
*/
VREF(ip->i_devvp);
/*
* Set up a generation number for this inode if it does not
* already have one. This should only happen on old filesystems.

View File

@ -162,7 +162,6 @@ ufs_reclaim(ap)
/*
* Purge old data structures associated with the inode.
*/
vrele(ip->i_devvp);
#ifdef QUOTA
for (i = 0; i < MAXQUOTAS; i++) {
if (ip->i_dquot[i] != NODQUOT) {