[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6ab96953-3475-41c2-b31b-e50f15088f0d@kernel.org>
Date: Mon, 3 Nov 2025 17:38:54 +0100
From: "David Hildenbrand (Red Hat)" <david@...nel.org>
To: Zi Yan <ziy@...dia.com>, akpm@...ux-foundation.org,
Wei Yang <richard.weiyang@...il.com>
Cc: linmiaohe@...wei.com, jane.chu@...cle.com, kernel@...kajraghav.com,
mcgrof@...nel.org, nao.horiguchi@...il.com,
Lorenzo Stoakes <lorenzo.stoakes@...cle.com>,
Baolin Wang <baolin.wang@...ux.alibaba.com>,
"Liam R. Howlett" <Liam.Howlett@...cle.com>, Nico Pache <npache@...hat.com>,
Ryan Roberts <ryan.roberts@....com>, Dev Jain <dev.jain@....com>,
Barry Song <baohua@...nel.org>, Lance Yang <lance.yang@...ux.dev>,
"Matthew Wilcox (Oracle)" <willy@...radead.org>,
Yang Shi <shy828301@...il.com>, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH v5 3/3] mm/huge_memory: fix kernel-doc comments for
folio_split() and related.
> diff --git a/mm/huge_memory.c b/mm/huge_memory.c
> index ad2fc52651a6..a30fee2001b5 100644
> --- a/mm/huge_memory.c
> +++ b/mm/huge_memory.c
> @@ -3586,7 +3586,7 @@ static void __split_folio_to_order(struct folio *folio, int old_order,
> * uniform_split is true.
> * 2. buddy allocator like (non-uniform) split: the given @folio is split into
> * half and one of the half (containing the given page) is split into half
> - * until the given @page's order becomes @new_order. This is done when
> + * until the given @folio's order becomes @new_order. This is done when
> * uniform_split is false.
> *
> * The high level flow for these two methods are:
> @@ -3595,14 +3595,14 @@ static void __split_folio_to_order(struct folio *folio, int old_order,
> * along with stats update.
> * 2. non-uniform split: folio_order - @new_order calls to
> * __split_folio_to_order() are expected to be made in a for loop to split
> - * the @folio to one lower order at a time. The folio containing @page is
> - * split in each iteration. @xas is split into half in each iteration and
> + * the @folio to one lower order at a time. The folio containing @split_at
> + * is split in each iteration. @xas is split into half in each iteration and
> * can fail. A failed @xas split leaves split folios as is without merging
> * them back.
> *
> * After splitting, the caller's folio reference will be transferred to the
> - * folio containing @page. The caller needs to unlock and/or free after-split
> - * folios if necessary.
> + * folio containing @split_at. The caller needs to unlock and/or free
> + * after-split folios if necessary.
> *
> * Return: 0 - successful, <0 - failed (if -ENOMEM is returned, @folio might be
> * split but not to @new_order, the caller needs to check)
Acked-by: David Hildenbrand (Red Hat) <david@...nel.org>
--
Cheers
David
Powered by blists - more mailing lists