vgonel(9freebsd)

vgonel9freebsd

Prepare a vnode for reuse

Usage

#include <sys/param.h>

#include <sys/vnode.h>

void

vgone(struct vnode *vp);

void

vgonel(struct vnode *vp, struct thread *td);

Overview

vgone() and vgonel() prepare a vnode for reuse by another file system. The preparation includes the cleaning of all file system specific data and the removal from its mount point vnode list.

If the vnode has a v_usecount of zero, and its VI_DOOMED flag is not set, it is moved to the head of the free list as in most cases the vnode is about to be reused, or its file system is being unmounted.

The difference between vgone() and vgonel() is that vgone() locks the vnode interlock and then calls vgonel() while vgonel() expects the interlock to already be locked.

Releases

2 releases since Debian 5.0 (Lenny); the text changed 1 time.

  1. 5.0
  2. 6.0

Authors

This manual page was written by Chad David ⟨[email protected]⟩.

From freebsd-manpages 8.1-1 in Debian 6.0 (Squeeze). Parsed by carta from the page's mdoc source.