aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2014-12-08 16:48:57 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2014-12-08 16:48:57 +0000
commita25100c539950ecf6c2918fc5906082b7e44fb80 (patch)
treedab51d0fd4666c42270ad0e89f8f1417a0aa7c34 /sys/sys/mount.h
parent904ed548bb9f163a07ac56ce47b8b14b43a42c70 (diff)
downloadsrc-a25100c539950ecf6c2918fc5906082b7e44fb80.tar.gz
src-a25100c539950ecf6c2918fc5906082b7e44fb80.zip
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
Notes
Notes: svn path=/head/; revision=275620
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r--sys/sys/mount.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index c4e1145d809d..6fb2d08187b7 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>