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

Function vget_prep

freebsd/kern/vfs_subr.c:2922–2934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2920}
2921
2922enum vgetstate
2923vget_prep(struct vnode *vp)
2924{
2925 enum vgetstate vs;
2926
2927 if (refcount_acquire_if_not_zero(&vp->v_usecount)) {
2928 vs = VGET_USECOUNT;
2929 } else {
2930 vhold(vp);
2931 vs = VGET_HOLDCNT;
2932 }
2933 return (vs);
2934}
2935
2936void
2937vget_abort(struct vnode *vp, enum vgetstate vs)

Callers 9

zfs_vptocnpFunction · 0.85
zfsctl_snapshot_vptocnpFunction · 0.85
vgetFunction · 0.85
vrefFunction · 0.85
cache_lookup_dotdotFunction · 0.85
cache_lookup_fallbackFunction · 0.85
vn_dir_dd_inoFunction · 0.85
vfs_hash_getFunction · 0.85
vfs_hash_insertFunction · 0.85

Calls 2

vholdFunction · 0.85

Tested by

no test coverage detected