diff options
Diffstat (limited to 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 3e9fda0ca470..9435f298dd75 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1128,6 +1128,12 @@ static int shmem_parse_mpol(char *value, unsigned short *policy, | |||
1128 | if (flags) { | 1128 | if (flags) { |
1129 | if (!strcmp(flags, "static")) | 1129 | if (!strcmp(flags, "static")) |
1130 | *mode_flags |= MPOL_F_STATIC_NODES; | 1130 | *mode_flags |= MPOL_F_STATIC_NODES; |
1131 | if (!strcmp(flags, "relative")) | ||
1132 | *mode_flags |= MPOL_F_RELATIVE_NODES; | ||
1133 | |||
1134 | if ((*mode_flags & MPOL_F_STATIC_NODES) && | ||
1135 | (*mode_flags & MPOL_F_RELATIVE_NODES)) | ||
1136 | err = 1; | ||
1131 | } | 1137 | } |
1132 | out: | 1138 | out: |
1133 | /* Restore string for error message */ | 1139 | /* Restore string for error message */ |