[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z-43ySa3tvGQllUy@localhost.localdomain>
Date: Thu, 3 Apr 2025 09:24:57 +0200
From: Oscar Salvador <osalvador@...e.de>
To: Liu Shixin <liushixin2@...wei.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Muchun Song <muchun.song@...ux.dev>,
Kefeng Wang <wangkefeng.wang@...wei.com>,
David Hildenbrand <david@...hat.com>,
Nanyong Sun <sunnanyong@...wei.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm/hugetlb: fix nid mismatch in
alloc_surplus_hugetlb_folio()
On Thu, Apr 03, 2025 at 02:41:38PM +0800, Liu Shixin wrote:
> It's wrong to use nid directly since the nid may be changed in allocation.
> Use folio_nid() to obtain the nid of folio instead.
>
> Fix: 2273dea6b1e1 ("mm/hugetlb: update nr_huge_pages and surplus_huge_pages together")
> Signed-off-by: Liu Shixin <liushixin2@...wei.com>
Acked-by: Oscar Salvador <osalvador@...e.de>
--
Oscar Salvador
SUSE Labs
Powered by blists - more mailing lists