Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93999
b: refs/heads/master
c: a43361c
h: refs/heads/master
i:
  93997: 0b27195
  93995: 6fd9f87
  93991: 7b53617
  93983: 48247f1
v: v3
  • Loading branch information
Lee Schermerhorn authored and Linus Torvalds committed Apr 28, 2008
1 parent fdcb632 commit 02a0858
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3e1f064562fcff7bf3856bc1d00dfa84d4f121cc
refs/heads/master: a43361cf3cb6fb6431fdbfb0f3ef26a334826160
16 changes: 11 additions & 5 deletions trunk/mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,20 +1125,26 @@ static int shmem_parse_mpol(char *value, unsigned short *policy,
*policy_nodes = node_states[N_HIGH_MEMORY];
err = 0;
}

*mode_flags = 0;
if (flags) {
/*
* Currently, we only support two mutually exclusive
* mode flags.
*/
if (!strcmp(flags, "static"))
*mode_flags |= MPOL_F_STATIC_NODES;
if (!strcmp(flags, "relative"))
else if (!strcmp(flags, "relative"))
*mode_flags |= MPOL_F_RELATIVE_NODES;

if ((*mode_flags & MPOL_F_STATIC_NODES) &&
(*mode_flags & MPOL_F_RELATIVE_NODES))
err = 1;
else
err = 1; /* unrecognized flag */
}
out:
/* Restore string for error message */
if (nodelist)
*--nodelist = ':';
if (flags)
*--flags = '=';
return err;
}

Expand Down

0 comments on commit 02a0858

Please sign in to comment.