Lines Matching refs:settings

134 struct settings {  struct
143 static struct settings saved_settings; argument
319 static void write_settings(struct settings *settings) in write_settings() argument
321 struct khugepaged_settings *khugepaged = &settings->khugepaged; in write_settings()
323 write_string("enabled", thp_enabled_strings[settings->thp_enabled]); in write_settings()
324 write_string("defrag", thp_defrag_strings[settings->thp_defrag]); in write_settings()
326 shmem_enabled_strings[settings->shmem_enabled]); in write_settings()
327 write_num("use_zero_page", settings->use_zero_page); in write_settings()
341 settings->read_ahead_kb); in write_settings()
345 static struct settings settings_stack[MAX_SETTINGS_DEPTH];
348 static struct settings *current_settings(void) in current_settings()
357 static void push_settings(struct settings *settings) in push_settings() argument
363 settings_stack[settings_index++] = *settings; in push_settings()
394 saved_settings = (struct settings) { in save_settings()
796 struct settings settings = *current_settings(); in __madvise_collapse() local
804 settings.thp_enabled = THP_NEVER; in __madvise_collapse()
805 settings.shmem_enabled = SHMEM_NEVER; in __madvise_collapse()
806 push_settings(&settings); in __madvise_collapse()
909 struct settings settings = *current_settings(); in alloc_at_fault() local
912 settings.thp_enabled = THP_ALWAYS; in alloc_at_fault()
913 push_settings(&settings); in alloc_at_fault()
971 struct settings settings = *current_settings(); in collapse_max_ptes_none() local
974 settings.khugepaged.max_ptes_none = max_ptes_none; in collapse_max_ptes_none()
975 push_settings(&settings); in collapse_max_ptes_none()
1441 struct settings default_settings = { in main()