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

Function vput

freebsd/kern/vfs_subr.c:3273–3284  ·  view source on GitHub ↗

* in: locked * out: unlocked */

Source from the content-addressed store, hash-verified

3271 * out: unlocked
3272 */
3273void
3274vput(struct vnode *vp)
3275{
3276
3277 ASSERT_VOP_LOCKED(vp, __func__);
3278 ASSERT_VI_UNLOCKED(vp, __func__);
3279 if (!refcount_release(&vp->v_usecount)) {
3280 VOP_UNLOCK(vp);
3281 return;
3282 }
3283 vput_final(vp, VPUT);
3284}
3285
3286/*
3287 * in: locked

Callers 15

mount_snapshotFunction · 0.85
zfs_lookupFunction · 0.85
zfs_removeFunction · 0.85
zfs_rmdirFunction · 0.85
zfs_setattrFunction · 0.85
zfs_rename_relockFunction · 0.85
zfs_deleteextattrFunction · 0.85
zfs_listextattrFunction · 0.85
zfs_vptocnpFunction · 0.85
zfs_vnode_forgetFunction · 0.85
zfs_unlinked_drainFunction · 0.85
zfs_purgedirFunction · 0.85

Calls 2

refcount_releaseFunction · 0.85
vput_finalFunction · 0.85

Tested by

no test coverage detected