aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/vnode.h
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-06-30 10:47:36 -0700
committerBrian Behlendorf <[email protected]>2010-06-30 12:49:39 -0700
commit6801b7154ccd8df47564d0f888166f3da931f3ff (patch)
tree2b3b5bea50423429d34cdb911fa27ca5df278ea1 /include/sys/vnode.h
parent79a3bf130b78cae41be339917788dde0b45c7d84 (diff)
Linux-2.6.33 compat, O_DSYNC flag added
Prior to linux-2.6.33 only O_DSYNC semantics were implemented and they used the O_SYNC flag. As of linux-2.6.33 this behavior was properly split in to O_SYNC and O_DSYNC respectively.
Diffstat (limited to 'include/sys/vnode.h')
-rw-r--r--include/sys/vnode.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/sys/vnode.h b/include/sys/vnode.h
index d3a74a738..09d843366 100644
--- a/include/sys/vnode.h
+++ b/include/sys/vnode.h
@@ -45,7 +45,14 @@
#define XVA_MAPSIZE 3
#define XVA_MAGIC 0x78766174
-#define O_DSYNC 040000000
+/*
+ * Prior to linux-2.6.33 only O_DSYNC semantics were implemented and
+ * they used the O_SYNC flag. As of linux-2.6.33 the this behavior
+ * was properly split in to O_SYNC and O_DSYNC respectively.
+ */
+#ifndef O_DSYNC
+#define O_DSYNC O_SYNC
+#endif
#define FREAD 1
#define FWRITE 2