Function

vnode_hasdirtyblks

Check if a vnode has dirty data waiting to be written to disk.

Declaration

int vnode_hasdirtyblks(vnode_t vp);

Parameters

vp

The vnode to test.

Return Value

Nonzero if there are dirty blocks, 0 otherwise

Discussion

Note that this routine is unsynchronized; it is only a snapshot and its result may cease to be true at the moment it is returned..