Re: [PATCH v5 7/8] mm: thp: split huge page to any lower order pages

2024-03-07 Thread Zi Yan
On 26 Feb 2024, at 15:55, Zi Yan wrote: > From: Zi Yan > > To split a THP to any lower order pages, we need to reform THPs on > subpages at given order and add page refcount based on the new page > order. Also we need to reinitialize page_deferred_list after removing > the page from the split_que

Re: [PATCH v5 7/8] mm: thp: split huge page to any lower order pages

2024-02-28 Thread Zi Yan
Hi Andrew, On 26 Feb 2024, at 15:55, Zi Yan wrote: > From: Zi Yan > > To split a THP to any lower order pages, we need to reform THPs on > subpages at given order and add page refcount based on the new page > order. Also we need to reinitialize page_deferred_list after removing > the page from t

Re: [PATCH v5 7/8] mm: thp: split huge page to any lower order pages

2024-02-28 Thread Ryan Roberts
On 28/02/2024 15:42, Zi Yan wrote: > On 28 Feb 2024, at 3:23, Ryan Roberts wrote: > >> Hi Zi, >> >> >> On 26/02/2024 20:55, Zi Yan wrote: >>> From: Zi Yan >>> >>> To split a THP to any lower order pages, we need to reform THPs on >>> subpages at given order and add page refcount based on the new

Re: [PATCH v5 7/8] mm: thp: split huge page to any lower order pages

2024-02-28 Thread Zi Yan
On 28 Feb 2024, at 3:23, Ryan Roberts wrote: > Hi Zi, > > > On 26/02/2024 20:55, Zi Yan wrote: >> From: Zi Yan >> >> To split a THP to any lower order pages, we need to reform THPs on >> subpages at given order and add page refcount based on the new page >> order. Also we need to reinitialize pag

Re: [PATCH v5 7/8] mm: thp: split huge page to any lower order pages

2024-02-28 Thread Ryan Roberts
Hi Zi, On 26/02/2024 20:55, Zi Yan wrote: > From: Zi Yan > > To split a THP to any lower order pages, we need to reform THPs on > subpages at given order and add page refcount based on the new page > order. Also we need to reinitialize page_deferred_list after removing > the page from the split

[PATCH v5 7/8] mm: thp: split huge page to any lower order pages

2024-02-26 Thread Zi Yan
From: Zi Yan To split a THP to any lower order pages, we need to reform THPs on subpages at given order and add page refcount based on the new page order. Also we need to reinitialize page_deferred_list after removing the page from the split_queue, otherwise a subsequent split will see list corru