mm/mempolicy.c: fix sp_node_init() argument ordering
authorKOSAKI Motohiro <[email protected]>
Fri, 8 Mar 2013 20:43:29 +0000 (12:43 -0800)
committerLinus Torvalds <[email protected]>
Fri, 8 Mar 2013 23:05:34 +0000 (15:05 -0800)
Currently, n_new is wrongly initialized.  start and end parameter are
inverted.  Let's fix it.

Signed-off-by: KOSAKI Motohiro <[email protected]>
Cc: Hillf Danton <[email protected]>
Cc: Sasha Levin <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Dave Jones <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/mempolicy.c

index 868d08f49f07e7f27cc39a9a7525de3e7fd8a5ee..74310017296ee02317b79a2c28b25ef303fc7720 100644 (file)
@@ -2390,7 +2390,7 @@ restart:
 
                                *mpol_new = *n->policy;
                                atomic_set(&mpol_new->refcnt, 1);
-                               sp_node_init(n_new, n->end, end, mpol_new);
+                               sp_node_init(n_new, end, n->end, mpol_new);
                                n->end = start;
                                sp_insert(sp, n_new);
                                n_new = NULL;