lkml.org 
[lkml]   [2022]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH 6/9] mm/hugetlb: convert free_huge_page to folios
On Thu, 13 Oct 2022 20:13:00 -0700 Sidhartha Kumar <sidhartha.kumar@oracle.com> wrote:

> Use folios inside free_huge_page(), this is in preparation for converting
> hugetlb_cgroup_uncharge_page() to take in a folio.

I added this build fix.

--- a/mm/hugetlb.c~mm-hugetlb-convert-free_huge_page-to-folios-fix
+++ a/mm/hugetlb.c
@@ -1704,7 +1704,7 @@ void free_huge_page(struct page *page)
unsigned long flags;

VM_BUG_ON_FOLIO(folio_ref_count(folio), folio);
- VM_BUG_ON_PAGE(folio_mapcount(folio), folio);
+ VM_BUG_ON_FOLIO(folio_mapcount(folio), folio);

hugetlb_set_folio_subpool(folio, NULL);
if (folio_test_anon(folio))
_
\
 
 \ /
  Last update: 2022-10-17 22:39    [W:1.051 / U:1.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site