]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - mm/page_alloc.c
mm: set correct numa_zonelist_order string when configured on the kernel command...
[mv-sheeva.git] / mm / page_alloc.c
index c314609185066ce8a9eb7a6047a291f48d8da9f5..c18d1f7cff84d2e4899cc738e81b72ad9e3ff8cc 100644 (file)
@@ -2631,9 +2631,16 @@ static int __parse_numa_zonelist_order(char *s)
 
 static __init int setup_numa_zonelist_order(char *s)
 {
-       if (s)
-               return __parse_numa_zonelist_order(s);
-       return 0;
+       int ret;
+
+       if (!s)
+               return 0;
+
+       ret = __parse_numa_zonelist_order(s);
+       if (ret == 0)
+               strlcpy(numa_zonelist_order, s, NUMA_ZONELIST_ORDER_LEN);
+
+       return ret;
 }
 early_param("numa_zonelist_order", setup_numa_zonelist_order);