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

Function vfs_ref

freebsd/kern/vfs_mount.c:452–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450 */
451
452void
453vfs_ref(struct mount *mp)
454{
455 struct mount_pcpu *mpcpu;
456
457 CTR2(KTR_VFS, "%s: mp %p", __func__, mp);
458 if (vfs_op_thread_enter(mp, mpcpu)) {
459 vfs_mp_count_add_pcpu(mpcpu, ref, 1);
460 vfs_op_thread_exit(mp, mpcpu);
461 return;
462 }
463
464 MNT_ILOCK(mp);
465 MNT_REF(mp);
466 MNT_IUNLOCK(mp);
467}
468
469void
470vfs_rel(struct mount *mp)

Callers 12

zfs_resume_fsFunction · 0.85
zfsctl_umount_snapshotsFunction · 0.85
zfsctl_snapshot_unmountFunction · 0.85
vn_start_writeFunction · 0.85
vn_vget_ino_genFunction · 0.85
vfs_getvfsFunction · 0.85
vfs_unmountallFunction · 0.85
kern_rerootFunction · 0.85
sys_quotactlFunction · 0.85
kern_statfsFunction · 0.85
kern_fstatfsFunction · 0.85
kern_unmountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected