lkml.org 
[lkml]   [2023]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/4] mm: pass set_count and set_reserved to __init_single_page
On Fri, Sep 22, 2023 at 03:09:20PM +0800, Yajun Deng wrote:
> - __init_single_page(page, pfn, zone, nid);
> + __init_single_page(page, pfn, zone, nid, true, false);

So Linus has just had a big rant about not doing bool flags to
functions. And in particular _multiple_ bool flags to functions.

ie this should be:

#define INIT_PAGE_COUNT (1 << 0)
#define INIT_PAGE_RESERVED (1 << 1)

__init_single_page(page, pfn, zone, nid, INIT_PAGE_COUNT);

or something similar.

I have no judgement on the merits of this patch so far. Do you have
performance numbers for each of these patches? Some of them seem quite
unlikely to actually help, at least on a machine which is constrained
by cacheline fetches.

\
 
 \ /
  Last update: 2023-09-22 16:27    [W:0.215 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site