Re: [PATCH -V9 07/21] swap: Support PMD swap mapping when splitting huge PMD

2018-12-18 Thread Huang, Ying
Hi, Daniel, Daniel Jordan writes: > +Aneesh > > On Fri, Dec 14, 2018 at 02:27:40PM +0800, Huang Ying wrote: >> diff --git a/mm/huge_memory.c b/mm/huge_memory.c >> index bd2543e10938..49df3e7c96c7 100644 >> --- a/mm/huge_memory.c >> +++ b/mm/huge_memory.c > >> +int

Re: [PATCH -V9 07/21] swap: Support PMD swap mapping when splitting huge PMD

2018-12-18 Thread Daniel Jordan
+Aneesh On Fri, Dec 14, 2018 at 02:27:40PM +0800, Huang Ying wrote: > diff --git a/mm/huge_memory.c b/mm/huge_memory.c > index bd2543e10938..49df3e7c96c7 100644 > --- a/mm/huge_memory.c > +++ b/mm/huge_memory.c > +int split_swap_cluster_map(swp_entry_t entry) ... > +

[PATCH -V9 07/21] swap: Support PMD swap mapping when splitting huge PMD

2018-12-13 Thread Huang Ying
A huge PMD need to be split when zap a part of the PMD mapping etc. If the PMD mapping is a swap mapping, we need to split it too. This patch implemented the support for this. This is similar as splitting the PMD page mapping, except we need to decrease the PMD swap mapping count for the huge