Lines Matching full:settings

143 struct settings {  struct
152 static struct settings saved_settings; argument
328 static void write_settings(struct settings *settings) in write_settings() argument
330 struct khugepaged_settings *khugepaged = &settings->khugepaged; in write_settings()
332 write_string("enabled", thp_enabled_strings[settings->thp_enabled]); in write_settings()
333 write_string("defrag", thp_defrag_strings[settings->thp_defrag]); in write_settings()
335 shmem_enabled_strings[settings->shmem_enabled]); in write_settings()
336 write_num("use_zero_page", settings->use_zero_page); in write_settings()
350 settings->read_ahead_kb); in write_settings()
354 static struct settings settings_stack[MAX_SETTINGS_DEPTH];
357 static struct settings *current_settings(void) in current_settings()
360 printf("Fail: No settings set"); in current_settings()
366 static void push_settings(struct settings *settings) in push_settings() argument
369 printf("Fail: Settings stack exceeded"); in push_settings()
372 settings_stack[settings_index++] = *settings; in push_settings()
379 printf("Fail: Settings stack empty"); in pop_settings()
391 printf("Restore THP and khugepaged settings..."); in restore_settings()
402 printf("Save THP and khugepaged settings..."); in save_settings()
403 saved_settings = (struct settings) { in save_settings()
805 struct settings settings = *current_settings(); in __madvise_collapse() local
813 settings.thp_enabled = THP_NEVER; in __madvise_collapse()
814 settings.shmem_enabled = SHMEM_NEVER; in __madvise_collapse()
815 push_settings(&settings); in __madvise_collapse()
918 struct settings settings = *current_settings(); in alloc_at_fault() local
921 settings.thp_enabled = THP_ALWAYS; in alloc_at_fault()
922 push_settings(&settings); in alloc_at_fault()
980 struct settings settings = *current_settings(); in collapse_max_ptes_none() local
983 settings.khugepaged.max_ptes_none = max_ptes_none; in collapse_max_ptes_none()
984 push_settings(&settings); in collapse_max_ptes_none()
1201 /* Do not touch settings on child exit */ in collapse_fork()
1239 /* Do not touch settings on child exit */ in collapse_fork_compound()
1289 /* Do not touch settings on child exit */ in collapse_max_ptes_shared()
1450 struct settings default_settings = { in main()