lkml.org 
[lkml]   [2020]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v2 03/30] mm: thp: use single linked list for THP page table page deposit.
On Mon, Sep 28, 2020 at 01:54:01PM -0400, Zi Yan wrote:
> struct { /* Page table pages */
> - unsigned long _pt_pad_1; /* compound_head */
> - pgtable_t pmd_huge_pte; /* protected by page->ptl */
> + struct llist_head deposit_head; /* pgtable deposit list head */
> + struct llist_node deposit_node; /* pgtable deposit list node */

If you're going to use two pointers anyway, you might as well use a
list_head. But I don't think you need to; you could either use a union
of these or you could use the page_address() of the page to store as
much information as you like!

\
 
 \ /
  Last update: 2020-09-28 21:35    [W:0.107 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site