Re: [PATCH] mm: init gfp mask in kcompactd_do_work()

2016-10-10 Thread Xishi Qiu
On 2016/10/10 14:40, Vlastimil Babka wrote: > On 10/10/2016 05:35 AM, Xishi Qiu wrote: >> We will use gfp_mask in the following path, but it's not init. >> >> kcompactd_do_work >> compact_zone >> gfpflags_to_migratetype >> >> However if not init, gfp_mask is always 0, and the result of

Re: [PATCH] mm: init gfp mask in kcompactd_do_work()

2016-10-09 Thread Vlastimil Babka
On 10/10/2016 05:35 AM, Xishi Qiu wrote: We will use gfp_mask in the following path, but it's not init. kcompactd_do_work compact_zone gfpflags_to_migratetype However if not init, gfp_mask is always 0, and the result of gfpflags_to_migratetype(0) and gfpflags_to_migratet

[PATCH] mm: init gfp mask in kcompactd_do_work()

2016-10-09 Thread Xishi Qiu
We will use gfp_mask in the following path, but it's not init. kcompactd_do_work compact_zone gfpflags_to_migratetype However if not init, gfp_mask is always 0, and the result of gfpflags_to_migratetype(0) and gfpflags_to_migratetype(GFP_KERNEL) are the same, but it's a li