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

Function resume_all_fs

freebsd/kern/vfs_mount.c:2588–2607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2586}
2587
2588void
2589resume_all_fs(void)
2590{
2591 struct mount *mp;
2592
2593 mtx_lock(&mountlist_mtx);
2594 TAILQ_FOREACH(mp, &mountlist, mnt_list) {
2595 if ((mp->mnt_kern_flag & MNTK_SUSPEND_ALL) == 0)
2596 continue;
2597 mtx_unlock(&mountlist_mtx);
2598 MNT_ILOCK(mp);
2599 MPASS((mp->mnt_kern_flag & MNTK_SUSPEND) != 0);
2600 mp->mnt_kern_flag &= ~MNTK_SUSPEND_ALL;
2601 MNT_IUNLOCK(mp);
2602 vfs_write_resume(mp, 0);
2603 mtx_lock(&mountlist_mtx);
2604 vfs_unbusy(mp);
2605 }
2606 mtx_unlock(&mountlist_mtx);
2607}

Callers

nothing calls this directly

Calls 4

vfs_write_resumeFunction · 0.85
vfs_unbusyFunction · 0.85
mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected