summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorMel Gorman <mgorman@suse.de>2012-11-16 09:37:58 +0000
committerMel Gorman <mgorman@suse.de>2012-12-11 14:42:44 +0000
commita720094ded8cbb303111035be91858011d2eac71 (patch)
treeceb9a2cf7f415e44f4f62a324382ec1de4a3bead /include/uapi/linux
parent4b10e7d562c90d0a72f324832c26653947a07381 (diff)
mm: mempolicy: Hide MPOL_NOOP and MPOL_MF_LAZY from userspace for now
The use of MPOL_NOOP and MPOL_MF_LAZY to allow an application to explicitly request lazy migration is a good idea but the actual API has not been well reviewed and once released we have to support it. For now this patch prevents an application using the services. This will need to be revisited. Signed-off-by: Mel Gorman <mgorman@suse.de>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/mempolicy.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/uapi/linux/mempolicy.h b/include/uapi/linux/mempolicy.h
index 6a1baae3775d..16fb4e6efbc4 100644
--- a/include/uapi/linux/mempolicy.h
+++ b/include/uapi/linux/mempolicy.h
@@ -21,7 +21,6 @@ enum {
MPOL_BIND,
MPOL_INTERLEAVE,
MPOL_LOCAL,
- MPOL_NOOP, /* retain existing policy for range */
MPOL_MAX, /* always last member of enum */
};
@@ -57,8 +56,7 @@ enum mpol_rebind_step {
#define MPOL_MF_VALID (MPOL_MF_STRICT | \
MPOL_MF_MOVE | \
- MPOL_MF_MOVE_ALL | \
- MPOL_MF_LAZY)
+ MPOL_MF_MOVE_ALL)
/*
* Internal flags that share the struct mempolicy flags word with