Remove unused argument to vrecycle()
This commit is contained in:
parent
1fdfaafb08
commit
d4eb29ba71
@ -190,7 +190,7 @@ cd9660_inactive(ap)
|
||||
* so that it can be reused immediately.
|
||||
*/
|
||||
if (ip->inode.iso_mode == 0)
|
||||
vrecycle(vp, NULL, td);
|
||||
vrecycle(vp, td);
|
||||
return error;
|
||||
}
|
||||
|
||||
|
@ -579,7 +579,7 @@ hpfs_inactive(ap)
|
||||
|
||||
if (hp->h_flag & H_INVAL) {
|
||||
VOP_UNLOCK(vp,0,ap->a_td);
|
||||
vrecycle(vp, NULL, ap->a_td);
|
||||
vrecycle(vp, ap->a_td);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
@ -704,6 +704,6 @@ msdosfs_inactive(ap)
|
||||
vrefcnt(vp), dep->de_Name[0]);
|
||||
#endif
|
||||
if (dep->de_Name[0] == SLOT_DELETED)
|
||||
vrecycle(vp, NULL, td);
|
||||
vrecycle(vp, td);
|
||||
return (error);
|
||||
}
|
||||
|
@ -715,7 +715,7 @@ null_inactive(struct vop_inactive_args *ap)
|
||||
* If this is the last reference, then free up the vnode
|
||||
* so as not to tie up the lower vnodes.
|
||||
*/
|
||||
vrecycle(vp, NULL, td);
|
||||
vrecycle(vp, td);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -378,7 +378,7 @@ smbfs_inactive(ap)
|
||||
}
|
||||
VOP_UNLOCK(vp, 0, td);
|
||||
if (np->n_flag & NGONE)
|
||||
vrecycle(vp, NULL, td);
|
||||
vrecycle(vp, td);
|
||||
return (0);
|
||||
}
|
||||
/*
|
||||
|
@ -505,7 +505,7 @@ ext2_inactive(ap)
|
||||
* so that it can be reused immediately.
|
||||
*/
|
||||
if (ip->i_mode == 0)
|
||||
vrecycle(vp, NULL, td);
|
||||
vrecycle(vp, td);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
@ -505,7 +505,7 @@ ext2_inactive(ap)
|
||||
* so that it can be reused immediately.
|
||||
*/
|
||||
if (ip->i_mode == 0)
|
||||
vrecycle(vp, NULL, td);
|
||||
vrecycle(vp, td);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
@ -190,7 +190,7 @@ cd9660_inactive(ap)
|
||||
* so that it can be reused immediately.
|
||||
*/
|
||||
if (ip->inode.iso_mode == 0)
|
||||
vrecycle(vp, NULL, td);
|
||||
vrecycle(vp, td);
|
||||
return error;
|
||||
}
|
||||
|
||||
|
@ -2213,17 +2213,11 @@ vx_unlock(struct vnode *vp)
|
||||
* Release the passed interlock if the vnode will be recycled.
|
||||
*/
|
||||
int
|
||||
vrecycle(vp, inter_lkp, td)
|
||||
struct vnode *vp;
|
||||
struct mtx *inter_lkp;
|
||||
struct thread *td;
|
||||
vrecycle(struct vnode *vp, struct thread *td)
|
||||
{
|
||||
|
||||
VI_LOCK(vp);
|
||||
if (vp->v_usecount == 0) {
|
||||
if (inter_lkp) {
|
||||
mtx_unlock(inter_lkp);
|
||||
}
|
||||
vgonel(vp, td);
|
||||
return (1);
|
||||
}
|
||||
|
@ -616,8 +616,7 @@ int vtruncbuf(struct vnode *vp, struct ucred *cred, struct thread *td,
|
||||
off_t length, int blksize);
|
||||
void vn_printf(struct vnode *vp, const char *fmt, ...);
|
||||
#define vprint(label, vp) vn_printf((vp), "%s\n", (label))
|
||||
int vrecycle(struct vnode *vp, struct mtx *inter_lkp,
|
||||
struct thread *td);
|
||||
int vrecycle(struct vnode *vp, struct thread *td);
|
||||
int vn_close(struct vnode *vp,
|
||||
int flags, struct ucred *file_cred, struct thread *td);
|
||||
void vn_finished_write(struct mount *mp);
|
||||
|
@ -128,7 +128,7 @@ ufs_inactive(ap)
|
||||
* so that it can be reused immediately.
|
||||
*/
|
||||
if (ip->i_mode == 0)
|
||||
vrecycle(vp, NULL, td);
|
||||
vrecycle(vp, td);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user