Make DISCARD_BARRIER and DISCARD_NOBARRIER writes instead of reads
[deliverable/linux.git] / include / linux / fs.h
index c1f993515f51ee6c66faa51d15b76c110fdf0e93..7f5a8ad25008cc23317b642c1f75cca815b72185 100644 (file)
@@ -161,8 +161,8 @@ struct inodes_stat_t {
  * These aren't really reads or writes, they pass down information about
  * parts of device that are now unused by the file system.
  */
-#define DISCARD_NOBARRIER (1 << BIO_RW_DISCARD)
-#define DISCARD_BARRIER ((1 << BIO_RW_DISCARD) | (1 << BIO_RW_BARRIER))
+#define DISCARD_NOBARRIER (WRITE | (1 << BIO_RW_DISCARD))
+#define DISCARD_BARRIER (DISCARD_NOBARRIER | (1 << BIO_RW_BARRIER))
 
 #define SEL_IN         1
 #define SEL_OUT                2
This page took 0.025138 seconds and 5 git commands to generate.