Don't hold a reference on the disk vnode for each inode.
This commit is contained in:
parent
358fef538f
commit
de68347b1b
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user