Re: [PATCH] mm: replace is_zero_pfn with is_huge_zero_pmd for thp

2019-09-04 Thread Yu Zhao
On Mon, Aug 26, 2019 at 05:09:34PM +0200, Gerald Schaefer wrote: > On Mon, 26 Aug 2019 06:18:58 -0700 > Matthew Wilcox wrote: > > > Why did you not cc Gerald who wrote the patch? You can't just > > run get_maintainers.pl and call it good. > > > > On Sun, Aug 25, 2019 at 02:06:21PM -0600, Yu

Re: [PATCH] mm: replace is_zero_pfn with is_huge_zero_pmd for thp

2019-08-26 Thread Gerald Schaefer
On Mon, 26 Aug 2019 06:18:58 -0700 Matthew Wilcox wrote: > Why did you not cc Gerald who wrote the patch? You can't just > run get_maintainers.pl and call it good. > > On Sun, Aug 25, 2019 at 02:06:21PM -0600, Yu Zhao wrote: > > For hugely mapped thp, we use is_huge_zero_pmd() to check if it's

Re: [PATCH] mm: replace is_zero_pfn with is_huge_zero_pmd for thp

2019-08-26 Thread Matthew Wilcox
Why did you not cc Gerald who wrote the patch? You can't just run get_maintainers.pl and call it good. On Sun, Aug 25, 2019 at 02:06:21PM -0600, Yu Zhao wrote: > For hugely mapped thp, we use is_huge_zero_pmd() to check if it's > zero page or not. > > We do fill ptes with my_zero_pfn() when

[PATCH] mm: replace is_zero_pfn with is_huge_zero_pmd for thp

2019-08-25 Thread Yu Zhao
For hugely mapped thp, we use is_huge_zero_pmd() to check if it's zero page or not. We do fill ptes with my_zero_pfn() when we split zero thp pmd, but this is not what we have in vm_normal_page_pmd(). pmd_trans_huge_lock() makes sure of it. This is a trivial fix for /proc/pid/numa_maps, and