SCCS-vsn: sys/ufs/ffs/ffs_inode.c 7.26
SCCS-vsn: sys/ufs/ffs/ufs_inode.c 7.26
SCCS-vsn: sys/ufs/lfs/lfs_inode.c 7.26
SCCS-vsn: sys/ufs/ufs/ufs_inode.c 7.26
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#)ffs_inode.c 7.25 (Berkeley) %G%
+ * @(#)ffs_inode.c 7.26 (Berkeley) %G%
ip->i_vnode = nvp;
ip->i_flag = 0;
ip->i_devvp = 0;
ip->i_vnode = nvp;
ip->i_flag = 0;
ip->i_devvp = 0;
ip->i_mode = 0;
#ifdef QUOTA
ip->i_dquot = NODQUOT;
ip->i_mode = 0;
#ifdef QUOTA
ip->i_dquot = NODQUOT;
vp = nvp;
iq = VTOI(vp);
iq->i_vnode = vp;
vp = nvp;
iq = VTOI(vp);
iq->i_vnode = vp;
iq->i_flag = 0;
ILOCK(iq);
iq->i_din = ip->i_din;
iq->i_flag = 0;
ILOCK(iq);
iq->i_din = ip->i_din;
register struct inode *ip = VTOI(vp);
int mode, error = 0;
register struct inode *ip = VTOI(vp);
int mode, error = 0;
- if (prtactive && vp->v_count != 0)
+ if (prtactive && vp->v_usecount != 0)
vprint("ufs_inactive: pushing active", vp);
/*
* Get rid of inodes related to stale file handles.
vprint("ufs_inactive: pushing active", vp);
/*
* Get rid of inodes related to stale file handles.
* If we are done with the inode, reclaim it
* so that it can be reused immediately.
*/
* If we are done with the inode, reclaim it
* so that it can be reused immediately.
*/
- if (vp->v_count == 0 && ip->i_mode == 0) {
+ if (vp->v_usecount == 0 && ip->i_mode == 0) {
vinvalbuf(vp, 0);
IUNLOCK(ip);
ip->i_flag = 0;
vinvalbuf(vp, 0);
IUNLOCK(ip);
ip->i_flag = 0;
{
register struct inode *ip = VTOI(vp);
{
register struct inode *ip = VTOI(vp);
- if (prtactive && vp->v_count != 0)
+ if (prtactive && vp->v_usecount != 0)
vprint("ufs_reclaim: pushing active", vp);
/*
* Remove the inode from its hash chain.
vprint("ufs_reclaim: pushing active", vp);
/*
* Remove the inode from its hash chain.
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#)ufs_inode.c 7.25 (Berkeley) %G%
+ * @(#)ufs_inode.c 7.26 (Berkeley) %G%
ip->i_vnode = nvp;
ip->i_flag = 0;
ip->i_devvp = 0;
ip->i_vnode = nvp;
ip->i_flag = 0;
ip->i_devvp = 0;
ip->i_mode = 0;
#ifdef QUOTA
ip->i_dquot = NODQUOT;
ip->i_mode = 0;
#ifdef QUOTA
ip->i_dquot = NODQUOT;
vp = nvp;
iq = VTOI(vp);
iq->i_vnode = vp;
vp = nvp;
iq = VTOI(vp);
iq->i_vnode = vp;
iq->i_flag = 0;
ILOCK(iq);
iq->i_din = ip->i_din;
iq->i_flag = 0;
ILOCK(iq);
iq->i_din = ip->i_din;
register struct inode *ip = VTOI(vp);
int mode, error = 0;
register struct inode *ip = VTOI(vp);
int mode, error = 0;
- if (prtactive && vp->v_count != 0)
+ if (prtactive && vp->v_usecount != 0)
vprint("ufs_inactive: pushing active", vp);
/*
* Get rid of inodes related to stale file handles.
vprint("ufs_inactive: pushing active", vp);
/*
* Get rid of inodes related to stale file handles.
* If we are done with the inode, reclaim it
* so that it can be reused immediately.
*/
* If we are done with the inode, reclaim it
* so that it can be reused immediately.
*/
- if (vp->v_count == 0 && ip->i_mode == 0) {
+ if (vp->v_usecount == 0 && ip->i_mode == 0) {
vinvalbuf(vp, 0);
IUNLOCK(ip);
ip->i_flag = 0;
vinvalbuf(vp, 0);
IUNLOCK(ip);
ip->i_flag = 0;
{
register struct inode *ip = VTOI(vp);
{
register struct inode *ip = VTOI(vp);
- if (prtactive && vp->v_count != 0)
+ if (prtactive && vp->v_usecount != 0)
vprint("ufs_reclaim: pushing active", vp);
/*
* Remove the inode from its hash chain.
vprint("ufs_reclaim: pushing active", vp);
/*
* Remove the inode from its hash chain.
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#)lfs_inode.c 7.25 (Berkeley) %G%
+ * @(#)lfs_inode.c 7.26 (Berkeley) %G%
ip->i_vnode = nvp;
ip->i_flag = 0;
ip->i_devvp = 0;
ip->i_vnode = nvp;
ip->i_flag = 0;
ip->i_devvp = 0;
ip->i_mode = 0;
#ifdef QUOTA
ip->i_dquot = NODQUOT;
ip->i_mode = 0;
#ifdef QUOTA
ip->i_dquot = NODQUOT;
vp = nvp;
iq = VTOI(vp);
iq->i_vnode = vp;
vp = nvp;
iq = VTOI(vp);
iq->i_vnode = vp;
iq->i_flag = 0;
ILOCK(iq);
iq->i_din = ip->i_din;
iq->i_flag = 0;
ILOCK(iq);
iq->i_din = ip->i_din;
register struct inode *ip = VTOI(vp);
int mode, error = 0;
register struct inode *ip = VTOI(vp);
int mode, error = 0;
- if (prtactive && vp->v_count != 0)
+ if (prtactive && vp->v_usecount != 0)
vprint("ufs_inactive: pushing active", vp);
/*
* Get rid of inodes related to stale file handles.
vprint("ufs_inactive: pushing active", vp);
/*
* Get rid of inodes related to stale file handles.
* If we are done with the inode, reclaim it
* so that it can be reused immediately.
*/
* If we are done with the inode, reclaim it
* so that it can be reused immediately.
*/
- if (vp->v_count == 0 && ip->i_mode == 0) {
+ if (vp->v_usecount == 0 && ip->i_mode == 0) {
vinvalbuf(vp, 0);
IUNLOCK(ip);
ip->i_flag = 0;
vinvalbuf(vp, 0);
IUNLOCK(ip);
ip->i_flag = 0;
{
register struct inode *ip = VTOI(vp);
{
register struct inode *ip = VTOI(vp);
- if (prtactive && vp->v_count != 0)
+ if (prtactive && vp->v_usecount != 0)
vprint("ufs_reclaim: pushing active", vp);
/*
* Remove the inode from its hash chain.
vprint("ufs_reclaim: pushing active", vp);
/*
* Remove the inode from its hash chain.
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#)ufs_inode.c 7.25 (Berkeley) %G%
+ * @(#)ufs_inode.c 7.26 (Berkeley) %G%
ip->i_vnode = nvp;
ip->i_flag = 0;
ip->i_devvp = 0;
ip->i_vnode = nvp;
ip->i_flag = 0;
ip->i_devvp = 0;
ip->i_mode = 0;
#ifdef QUOTA
ip->i_dquot = NODQUOT;
ip->i_mode = 0;
#ifdef QUOTA
ip->i_dquot = NODQUOT;
vp = nvp;
iq = VTOI(vp);
iq->i_vnode = vp;
vp = nvp;
iq = VTOI(vp);
iq->i_vnode = vp;
iq->i_flag = 0;
ILOCK(iq);
iq->i_din = ip->i_din;
iq->i_flag = 0;
ILOCK(iq);
iq->i_din = ip->i_din;
register struct inode *ip = VTOI(vp);
int mode, error = 0;
register struct inode *ip = VTOI(vp);
int mode, error = 0;
- if (prtactive && vp->v_count != 0)
+ if (prtactive && vp->v_usecount != 0)
vprint("ufs_inactive: pushing active", vp);
/*
* Get rid of inodes related to stale file handles.
vprint("ufs_inactive: pushing active", vp);
/*
* Get rid of inodes related to stale file handles.
* If we are done with the inode, reclaim it
* so that it can be reused immediately.
*/
* If we are done with the inode, reclaim it
* so that it can be reused immediately.
*/
- if (vp->v_count == 0 && ip->i_mode == 0) {
+ if (vp->v_usecount == 0 && ip->i_mode == 0) {
vinvalbuf(vp, 0);
IUNLOCK(ip);
ip->i_flag = 0;
vinvalbuf(vp, 0);
IUNLOCK(ip);
ip->i_flag = 0;
{
register struct inode *ip = VTOI(vp);
{
register struct inode *ip = VTOI(vp);
- if (prtactive && vp->v_count != 0)
+ if (prtactive && vp->v_usecount != 0)
vprint("ufs_reclaim: pushing active", vp);
/*
* Remove the inode from its hash chain.
vprint("ufs_reclaim: pushing active", vp);
/*
* Remove the inode from its hash chain.