Be careful when defining `MPOL_LOCAL`
authorJoão Neto <joao@neto.pt>
Fri, 5 Oct 2018 23:34:03 +0000 (00:34 +0100)
committerGitHub <noreply@github.com>
Fri, 5 Oct 2018 23:34:03 +0000 (00:34 +0100)
`MPOL_LOCAL` will be defined in `numaif.h` in the future. Also, `MPOL_MAX` will be changed to match the kernel values.

fio.h

diff --git a/fio.h b/fio.h
index 7b6611a013b252aeca518c1c0f4af6caf89ed5c8..53bcda1315f9b88858e6cf2f41b37b03b4380bd5 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -57,7 +57,9 @@
 /*
  * "local" is pseudo-policy
  */
 /*
  * "local" is pseudo-policy
  */
-#define MPOL_LOCAL MPOL_MAX
+#ifndef MPOL_LOCAL
+#define MPOL_LOCAL 4
+#endif
 #endif
 
 #ifdef CONFIG_CUDA
 #endif
 
 #ifdef CONFIG_CUDA