Lines Matching refs:kcompactd
1883 * Only allow kcompactd and direct requests for movable pages to
2123 * corresponding kcompactd thread when the node's fragmentation score
2182 * by kswapd when it goes to sleep. kcompactd does not set the
3046 static int kcompactd(void *p)
3118 * This kcompactd start function will be called by init and node-hot-add.
3119 * On node-hot-add, kcompactd will moved to proper cpus if cpus are hot-added.
3125 if (pgdat->kcompactd)
3128 pgdat->kcompactd = kthread_run(kcompactd, pgdat, "kcompactd%d", nid);
3129 if (IS_ERR(pgdat->kcompactd)) {
3130 pr_err("Failed to start kcompactd on node %d\n", nid);
3131 pgdat->kcompactd = NULL;
3141 struct task_struct *kcompactd = NODE_DATA(nid)->kcompactd;
3143 if (kcompactd) {
3144 kthread_stop(kcompactd);
3145 NODE_DATA(nid)->kcompactd = NULL;
3150 * It's optimal to keep kcompactd on the same CPUs as their memory, but
3167 if (pgdat->kcompactd)
3168 set_cpus_allowed_ptr(pgdat->kcompactd, mask);
3239 pr_err("kcompactd: failed to register hotplug callbacks.\n");