Lines Matching refs:err
150 int err = 0; in start_khugepaged() local
157 err = PTR_ERR(khugepaged_thread); in start_khugepaged()
170 return err; in start_khugepaged()
305 int err; in enabled_store() local
308 err = start_khugepaged(); in enabled_store()
311 if (err) in enabled_store()
312 ret = err; in enabled_store()
431 int err; in scan_sleep_millisecs_store() local
433 err = kstrtoul(buf, 10, &msecs); in scan_sleep_millisecs_store()
434 if (err || msecs > UINT_MAX) in scan_sleep_millisecs_store()
458 int err; in alloc_sleep_millisecs_store() local
460 err = kstrtoul(buf, 10, &msecs); in alloc_sleep_millisecs_store()
461 if (err || msecs > UINT_MAX) in alloc_sleep_millisecs_store()
483 int err; in pages_to_scan_store() local
486 err = kstrtoul(buf, 10, &pages); in pages_to_scan_store()
487 if (err || !pages || pages > UINT_MAX) in pages_to_scan_store()
551 int err; in khugepaged_max_ptes_none_store() local
554 err = kstrtoul(buf, 10, &max_ptes_none); in khugepaged_max_ptes_none_store()
555 if (err || max_ptes_none > HPAGE_PMD_NR-1) in khugepaged_max_ptes_none_store()
584 int err; in hugepage_init_sysfs() local
592 err = sysfs_create_group(*hugepage_kobj, &hugepage_attr_group); in hugepage_init_sysfs()
593 if (err) { in hugepage_init_sysfs()
598 err = sysfs_create_group(*hugepage_kobj, &khugepaged_attr_group); in hugepage_init_sysfs()
599 if (err) { in hugepage_init_sysfs()
610 return err; in hugepage_init_sysfs()
632 int err; in hugepage_init() local
640 err = hugepage_init_sysfs(&hugepage_kobj); in hugepage_init()
641 if (err) in hugepage_init()
642 return err; in hugepage_init()
644 err = khugepaged_slab_init(); in hugepage_init()
645 if (err) in hugepage_init()
663 return err; in hugepage_init()