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

Function vfs_assert_mount_counters

freebsd/kern/vfs_mount.c:1631–1647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1629
1630#ifdef DIAGNOSTIC
1631void
1632vfs_assert_mount_counters(struct mount *mp)
1633{
1634 struct mount_pcpu *mpcpu;
1635 int cpu;
1636
1637 if (mp->mnt_vfs_ops == 0)
1638 return;
1639
1640 CPU_FOREACH(cpu) {
1641 mpcpu = vfs_mount_pcpu_remote(mp, cpu);
1642 if (mpcpu->mntp_ref != 0 ||
1643 mpcpu->mntp_lockref != 0 ||
1644 mpcpu->mntp_writeopcount != 0)
1645 vfs_dump_mount_counters(mp);
1646 }
1647}
1648
1649void
1650vfs_dump_mount_counters(struct mount *mp)

Callers 6

vn_finished_writeFunction · 0.70
vfs_write_suspendFunction · 0.70
vfs_busyFunction · 0.70
vfs_unbusyFunction · 0.70
vfs_mount_destroyFunction · 0.70
vfs_op_enterFunction · 0.70

Calls 1

vfs_dump_mount_countersFunction · 0.85

Tested by

no test coverage detected