aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mount.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2014-10-19 06:59:33 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2014-10-19 06:59:33 +0000
commit020b8f17a092a1bca30f3ac6627ee98f0fffbc88 (patch)
tree36b9f8d68635bf0aae8d06720114cd76dfd5f5e8 /sys/sys/mount.h
parent3fe93b946f6ab35be43e49bb46aa35a1d1dd3489 (diff)
downloadsrc-020b8f17a092a1bca30f3ac6627ee98f0fffbc88.tar.gz
src-020b8f17a092a1bca30f3ac6627ee98f0fffbc88.zip
Provide vfs suspension support only for filesystems which need it.
Need is expressed by providing vfs_susp_clean function in vfsops. Differential Revision: D952 Reviewed by: kib (previous version) MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=273271
Diffstat (limited to 'sys/sys/mount.h')
-rw-r--r--sys/sys/mount.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index d18659990338..633c6dbd2c71 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -754,11 +754,10 @@ vfs_statfs_t __vfs_statfs;
_rc; })
#define VFS_SUSP_CLEAN(MP) do { \
- if (*(MP)->mnt_op->vfs_susp_clean != NULL) { \
- VFS_PROLOGUE(MP); \
- (*(MP)->mnt_op->vfs_susp_clean)(MP); \
- VFS_EPILOGUE(MP); \
- } \
+ MPASS(*(MP)->mnt_op->vfs_susp_clean != NULL); \
+ VFS_PROLOGUE(MP); \
+ (*(MP)->mnt_op->vfs_susp_clean)(MP); \
+ VFS_EPILOGUE(MP); \
} while (0)
#define VFS_RECLAIM_LOWERVP(MP, VP) do { \