diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2013-03-08 15:43:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-08 18:05:34 -0500 |
commit | 7880639c3e4fde5953ff243ee52204ddc5af641b (patch) | |
tree | 2dbd947da5ac91a7ec4cf3bb06a96172aa1138bc /mm/mempolicy.c | |
parent | 5ca3957510b9fc2a14d3647db518014842f9a2b4 (diff) |
mm/mempolicy.c: fix sp_node_init() argument ordering
Currently, n_new is wrongly initialized. start and end parameter are
inverted. Let's fix it.
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Hillf Danton <dhillf@gmail.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 868d08f49f07..74310017296e 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -2390,7 +2390,7 @@ restart: | |||
2390 | 2390 | ||
2391 | *mpol_new = *n->policy; | 2391 | *mpol_new = *n->policy; |
2392 | atomic_set(&mpol_new->refcnt, 1); | 2392 | atomic_set(&mpol_new->refcnt, 1); |
2393 | sp_node_init(n_new, n->end, end, mpol_new); | 2393 | sp_node_init(n_new, end, n->end, mpol_new); |
2394 | n->end = start; | 2394 | n->end = start; |
2395 | sp_insert(sp, n_new); | 2395 | sp_insert(sp, n_new); |
2396 | n_new = NULL; | 2396 | n_new = NULL; |