CCMS - Correct bug, add #include <sys/spinlock2.h> to kern_ccms.c
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 14 Jul 2009 00:19:09 +0000 (17:19 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 14 Jul 2009 00:19:09 +0000 (17:19 -0700)
sys/kern/kern_ccms.c
sys/sys/vnode.h

index 9fecab0..cc73f49 100644 (file)
@@ -47,6 +47,8 @@
 #include <sys/uio.h>
 #include <machine/limits.h>
 
+#include <sys/spinlock2.h>
+
 struct ccms_lock_scan_info {
        ccms_dataspace_t ds;
        ccms_lock_t lock;
index 45de61a..deb0fe6 100644 (file)
@@ -291,6 +291,10 @@ struct vnode {
 #define VMOUNT         0x00400000      /* Mount in progress */
 #define        VOBJDIRTY       0x00800000      /* object might be dirty */
 
+#define VMP_READ       0x01000000      /* supports MPSAFE read */
+#define VMP_WRITE      0x02000000      /* supports MPSAFE write */
+#define VMP_GETATTR    0x04000000      /* supports MPSAFE getattr */
+
 /*
  * vmntvnodescan() flags
  */