MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vinactive

Function vinactive

freebsd/kern/vfs_subr.c:3657–3674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3655}
3656
3657int
3658vinactive(struct vnode *vp)
3659{
3660
3661 ASSERT_VOP_ELOCKED(vp, "vinactive");
3662 ASSERT_VI_LOCKED(vp, "vinactive");
3663 CTR2(KTR_VFS, "%s: vp %p", __func__, vp);
3664
3665 if ((vp->v_iflag & VI_OWEINACT) == 0)
3666 return (0);
3667 if (vp->v_iflag & VI_DOINGINACT)
3668 return (0);
3669 if (vp->v_usecount > 0) {
3670 vp->v_iflag &= ~VI_OWEINACT;
3671 return (0);
3672 }
3673 return (vinactivef(vp));
3674}
3675
3676/*
3677 * Remove any vnodes in the vnode table belonging to mount point mp.

Callers 2

vput_finalFunction · 0.85
vfs_deferred_inactiveFunction · 0.85

Calls 1

vinactivefFunction · 0.85

Tested by

no test coverage detected