Re: [PATCH 1/3] rust: alloc: add Vec::truncate method

2025-03-15 Thread Danilo Krummrich
On Fri, Mar 14, 2025 at 09:42:33PM -0500, Andrew Ballance wrote: > implements the equivalent to the std's Vec::truncate > on the kernel's Vec type. > > Signed-off-by: Andrew Ballance > --- > rust/kernel/alloc/kvec.rs | 36 > 1 file changed, 36 insertions(+) >

Re: [PATCH 2/3] rust: alloc: add Vec::resize method

2025-03-15 Thread Danilo Krummrich
On Fri, Mar 14, 2025 at 09:42:34PM -0500, Andrew Ballance wrote: > implemnts the equivalent of the rust std's Vec::resize > on the kernel's Vec type. Nit: It is preferred to use the imperative form, i.e. "Implement the equivalent [...]". > > Signed-off-by: Andrew Ballance > --- > rust/kernel/a

Re: [PATCH 0/3] rust: alloc: add Vec::resize and Vec::truncate

2025-03-15 Thread Danilo Krummrich
Hi Andrew, On Fri, Mar 14, 2025 at 09:42:32PM -0500, Andrew Ballance wrote: > This patch series implements the Vec::truncate and Vec::resize methods > that were needed by the nova driver and removes the corresponding item > from their task list > > Andrew Ballance (3): > rust: alloc: add Vec::t

Re: [RFC 07/11] mm/memremap: Add folio_split support

2025-03-15 Thread Alistair Popple
On Thu, Mar 06, 2025 at 03:42:35PM +1100, Balbir Singh wrote: > When a zone device page is split (via huge pmd folio split). The > driver callback for folio_split is invoked to let the device driver > know that the folio size has been split into a smaller order. > > The HMM test driver has been up

Re: [RFC 07/11] mm/memremap: Add folio_split support

2025-03-15 Thread Mika Penttilä
Hi, On 3/6/25 06:42, Balbir Singh wrote: > When a zone device page is split (via huge pmd folio split). The > driver callback for folio_split is invoked to let the device driver > know that the folio size has been split into a smaller order. > > The HMM test driver has been updated to handle the s