diff options
author | kib <kib@FreeBSD.org> | 2014-12-08 16:48:57 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-12-08 16:48:57 +0000 |
commit | 1a8d4344d0a617f3f123dabedfb9c1615b94ebfa (patch) | |
tree | dab51d0fd4666c42270ad0e89f8f1417a0aa7c34 /sys/sys/mount.h | |
parent | 0957112e3c431e30f0931bb908df03cded76c4d2 (diff) | |
download | FreeBSD-src-1a8d4344d0a617f3f123dabedfb9c1615b94ebfa.zip FreeBSD-src-1a8d4344d0a617f3f123dabedfb9c1615b94ebfa.tar.gz |
Add functions syncer_suspend() and syncer_resume(), which are supposed
to be called before suspension and after resume, correspondingly. The
syncer_suspend() ensures that all filesystems dirty data and metadata
are saved to the permanent storage, and stops kernel threads which
might modify filesystems. The syncer_resume() restores stopped
threads.
For now, only syncer is stopped. This is needed, because each sync
loop causes superblock updates for UFS.
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r-- | sys/sys/mount.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h index c4e1145..6fb2d08 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -917,6 +917,9 @@ vfs_uninit_t vfs_stduninit; vfs_extattrctl_t vfs_stdextattrctl; vfs_sysctl_t vfs_stdsysctl; +void syncer_suspend(void); +void syncer_resume(void); + #else /* !_KERNEL */ #include <sys/cdefs.h> |