aboutsummaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorGavin Shan <shangw@linux.vnet.ibm.com>2012-10-08 19:29:27 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-09 03:22:24 -0400
commitd5dc0ad928fb9e972001e552597fd0b794863f34 (patch)
tree14a08839b4b95c0a7eae66efe498382b4977a16a /mm/vmscan.c
parente0f3c3f78da29b114e7c1c68019036559f715948 (diff)
mm/vmscan: fix error number for failed kthread
Fix the return value while failing to create the kswapd kernel thread. Also, the error message is prioritized as KERN_ERR. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index f6fdae7a8d4c..d16bf5a53266 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -3126,9 +3126,9 @@ int kswapd_run(int nid)
3126 if (IS_ERR(pgdat->kswapd)) { 3126 if (IS_ERR(pgdat->kswapd)) {
3127 /* failure at boot is fatal */ 3127 /* failure at boot is fatal */
3128 BUG_ON(system_state == SYSTEM_BOOTING); 3128 BUG_ON(system_state == SYSTEM_BOOTING);
3129 printk("Failed to start kswapd on node %d\n",nid);
3130 pgdat->kswapd = NULL; 3129 pgdat->kswapd = NULL;
3131 ret = -1; 3130 pr_err("Failed to start kswapd on node %d\n", nid);
3131 ret = PTR_ERR(pgdat->kswapd);
3132 } 3132 }
3133 return ret; 3133 return ret;
3134} 3134}