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

Function vfs_deferred_inactive

freebsd/kern/vfs_subr.c:4737–4755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4735}
4736
4737static void
4738vfs_deferred_inactive(struct vnode *vp, int lkflags)
4739{
4740
4741 ASSERT_VI_LOCKED(vp, __func__);
4742 VNASSERT((vp->v_iflag & VI_DEFINACT) == 0, vp, ("VI_DEFINACT still set"));
4743 if ((vp->v_iflag & VI_OWEINACT) == 0) {
4744 vdropl(vp);
4745 return;
4746 }
4747 if (vn_lock(vp, lkflags) == 0) {
4748 VI_LOCK(vp);
4749 vinactive(vp);
4750 VOP_UNLOCK(vp);
4751 vdropl(vp);
4752 return;
4753 }
4754 vdefer_inactive_unlocked(vp);
4755}
4756
4757static int
4758vfs_periodic_inactive_filter(struct vnode *vp, void *arg)

Callers 2

vfs_periodic_inactiveFunction · 0.85

Calls 4

vdroplFunction · 0.85
vn_lockFunction · 0.85
vinactiveFunction · 0.85
vdefer_inactive_unlockedFunction · 0.85

Tested by

no test coverage detected