Re: [PATCH v7 1/8] xarray: add xas_try_split() to split a multi-index entry.

2025-02-18 Thread David Hildenbrand
Now, can it happen that xas_try_split() would ever perform a partial split in any way, when invoked from __split_unmapped_folio(), such that we run into the do { } while(); loop and fail with -ENOMEM after already having performed changes -- xas_update(). Or is that simply impossible? Right

Re: [PATCH v7 1/8] xarray: add xas_try_split() to split a multi-index entry.

2025-02-18 Thread Zi Yan
On 18 Feb 2025, at 10:44, David Hildenbrand wrote: > On 17.02.25 23:05, Zi Yan wrote: >> On 17 Feb 2025, at 16:44, David Hildenbrand wrote: >> >>> On 11.02.25 16:50, Zi Yan wrote: It is a preparation patch for non-uniform folio split, which always split a folio into half iteratively, and

Re: [PATCH v7 1/8] xarray: add xas_try_split() to split a multi-index entry.

2025-02-18 Thread David Hildenbrand
On 17.02.25 23:05, Zi Yan wrote: On 17 Feb 2025, at 16:44, David Hildenbrand wrote: On 11.02.25 16:50, Zi Yan wrote: It is a preparation patch for non-uniform folio split, which always split a folio into half iteratively, and minimal xarray entry split. Currently, xas_split_alloc() and xas_sp

Re: [PATCH v7 1/8] xarray: add xas_try_split() to split a multi-index entry.

2025-02-17 Thread Zi Yan
On 17 Feb 2025, at 16:44, David Hildenbrand wrote: > On 11.02.25 16:50, Zi Yan wrote: >> It is a preparation patch for non-uniform folio split, which always split >> a folio into half iteratively, and minimal xarray entry split. >> >> Currently, xas_split_alloc() and xas_split() always split all s

Re: [PATCH v7 1/8] xarray: add xas_try_split() to split a multi-index entry.

2025-02-17 Thread David Hildenbrand
On 11.02.25 16:50, Zi Yan wrote: It is a preparation patch for non-uniform folio split, which always split a folio into half iteratively, and minimal xarray entry split. Currently, xas_split_alloc() and xas_split() always split all slots from a multi-index entry. They cost the same number of xa_

Re: [PATCH v7 1/8] xarray: add xas_try_split() to split a multi-index entry.

2025-02-11 Thread Zi Yan
On 11 Feb 2025, at 19:57, Zi Yan wrote: > On 11 Feb 2025, at 10:50, Zi Yan wrote: > >> It is a preparation patch for non-uniform folio split, which always split >> a folio into half iteratively, and minimal xarray entry split. >> >> Currently, xas_split_alloc() and xas_split() always split all slo

Re: [PATCH v7 1/8] xarray: add xas_try_split() to split a multi-index entry.

2025-02-11 Thread Zi Yan
On 11 Feb 2025, at 10:50, Zi Yan wrote: > It is a preparation patch for non-uniform folio split, which always split > a folio into half iteratively, and minimal xarray entry split. > > Currently, xas_split_alloc() and xas_split() always split all slots from a > multi-index entry. They cost the sam