]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Linux-2.6.33 compat, O_DSYNC flag added
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Jun 2010 17:47:36 +0000 (10:47 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Jun 2010 19:49:39 +0000 (12:49 -0700)
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.

include/sys/vnode.h

index d3a74a738c68624922c6a803cc5f28a92fe6be3a..09d8433669be50b304e2ee2db5c0bb200f451b16 100644 (file)
 #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