On 10/23, Alex Thorlton wrote:
>
> --- a/include/linux/sched.h
> +++ b/include/linux/sched.h
> @@ -1661,6 +1661,18 @@ struct task_struct {
>       unsigned int    sequential_io;
>       unsigned int    sequential_io_avg;
>  #endif
> +#ifdef CONFIG_TRANSPARENT_HUGEPAGE
> +     struct callback_head pgcollapse_work;
> +     /* default scan 8*512 pte (or vmas) every 30 second */
> +     unsigned int pgcollapse_pages_to_scan;
> +     unsigned int pgcollapse_pages_collapsed;
> +     unsigned int pgcollapse_full_scans;
> +     unsigned int pgcollapse_scan_sleep_millisecs;
> +     /* during fragmentation poll the hugepage allocator once every minute */
> +     unsigned int pgcollapse_alloc_sleep_millisecs;
> +     unsigned long pgcollapse_last_scan;
> +     unsigned long pgcollapse_scan_address;
> +#endif

Shouldn't this all live in mm_struct?

Except pgcollapse_work can't, exit_mm() called before exit_mm(). Probably
it can be allocated.

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to