Lines Matching refs:kcompactd
1686 * Only allow kcompactd and direct requests for movable pages to
1905 * corresponding kcompactd thread when the node's fragmentation score
1962 * by kswapd when it goes to sleep. kcompactd does not set the
2796 static int kcompactd(void *p)
2826 /* kcompactd wait timeout */
2850 * This kcompactd start function will be called by init and node-hot-add.
2851 * On node-hot-add, kcompactd will moved to proper cpus if cpus are hot-added.
2858 if (pgdat->kcompactd)
2861 pgdat->kcompactd = kthread_run(kcompactd, pgdat, "kcompactd%d", nid);
2862 if (IS_ERR(pgdat->kcompactd)) {
2863 pr_err("Failed to start kcompactd on node %d\n", nid);
2864 ret = PTR_ERR(pgdat->kcompactd);
2865 pgdat->kcompactd = NULL;
2876 struct task_struct *kcompactd = NODE_DATA(nid)->kcompactd;
2878 if (kcompactd) {
2879 kthread_stop(kcompactd);
2880 NODE_DATA(nid)->kcompactd = NULL;
2885 * It's optimal to keep kcompactd on the same CPUs as their memory, but
2902 set_cpus_allowed_ptr(pgdat->kcompactd, mask);
2916 pr_err("kcompactd: failed to register hotplug callbacks.\n");