Function

vnode_addfsref

Mark a vnode as being stored in a filesystem hash.

Declaration

int vnode_addfsref(vnode_t vp);

Parameters

vp

The vnode to mark.

Return Value

Always 0.

Discussion

Should only be called once on a vnode, and never if that vnode was created with VNFS_ADDFSREF. There should be a corresponding call to vnode_removefsref() when the vnode is reclaimed; VFS assumes that a n unused vnode will not be marked as referenced by a filesystem.