Re: [PATCH -V6 14/21] swap: Support to move swap account for PMD swap mapping

2018-10-24 Thread Huang, Ying
Daniel Jordan writes: > On Wed, Oct 10, 2018 at 03:19:17PM +0800, Huang Ying wrote: >> +static struct page *mc_handle_swap_pmd(struct vm_area_struct *vma, >> +pmd_t pmd, swp_entry_t *entry) >> +{ > > Got > /home/dbbench/linux/mm/memcontrol.c:4719:21: warning: ‘mc_handle_swap_p

Re: [PATCH -V6 14/21] swap: Support to move swap account for PMD swap mapping

2018-10-24 Thread Daniel Jordan
On Wed, Oct 10, 2018 at 03:19:17PM +0800, Huang Ying wrote: > +static struct page *mc_handle_swap_pmd(struct vm_area_struct *vma, > + pmd_t pmd, swp_entry_t *entry) > +{ Got /home/dbbench/linux/mm/memcontrol.c:4719:21: warning: ‘mc_handle_swap_pmd’ defined but not used [-Wunus

[PATCH -V6 14/21] swap: Support to move swap account for PMD swap mapping

2018-10-10 Thread Huang Ying
Previously the huge swap cluster will be split after the THP is swapout. Now, to support to swapin the THP in one piece, the huge swap cluster will not be split after the THP is reclaimed. So in memcg, we need to move the swap account for PMD swap mappings in the process's page table. When the p