lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zt+ViveH9q1F+ShB@MiWiFi-R3L-srv>
Date: Tue, 10 Sep 2024 08:40:42 +0800
From: Baoquan He <bhe@...hat.com>
To: Uladzislau Rezki <urezki@...il.com>
Cc: linux-mm@...ck.org, Andrew Morton <akpm@...ux-foundation.org>,
	LKML <linux-kernel@...r.kernel.org>,
	Christoph Hellwig <hch@...radead.org>,
	Michal Hocko <mhocko@...e.com>,
	Oleksiy Avramchenko <oleksiy.avramchenko@...y.com>
Subject: Re: [PATCH] mm/vmalloc.c: Use "high-order" in description non
 0-order pages

On 09/09/24 at 07:52pm, Uladzislau Rezki wrote:
> On Mon, Sep 09, 2024 at 10:56:57AM +0800, Baoquan He wrote:
> > On 09/06/24 at 11:50am, Uladzislau Rezki (Sony) wrote:
> > > In many places, in the comments, we use both "higher-order" and
> > > "high-order" to describe the non 0-order pages. That is confusing,
> > > because a "higher-order" statement does not reflect what it is
> > > compared with.
> > > 
> > > Suggested-by: Baoquan He <bhe@...hat.com>
> > > Signed-off-by: Uladzislau Rezki (Sony) <urezki@...il.com>
> > > ---
> > >  mm/vmalloc.c | 4 ++--
> > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > This looks good to me, thanks.
> > 
> > Reviewed-by: Baoquan He <bhe@...hat.com>
> > 
> > By the way, do you plan to clean up the rest of them in other places?
> > 
> urezki@...38:~/data/raid0/coding/linux-next.git$ grep -rni higher include/linux/vmalloc.h 
> urezki@...38:~/data/raid0/coding/linux-next.git$ grep -rni higher mm/vmalloc.c
> 493:     * nr is a running index into the array which helps higher level
> urezki@...38:~/data/raid0/coding/linux-next.git$
> 
> What am i missing? Didn't i do it?

Sorry, I didn't make it clear. I meant those places other than vmalloc
related files, e.g mm/page_alloc.c, there are a lot of [Hhigh]er-order
mixed with high-order. I can continue the cleaning sometime if it's not
in your TO-DO list.

mm/page_alloc.c:551: * Higher-order pages are called "compound pages".  They are structured thusly:
mm/page_alloc.c:716: * of the next-higher order is free. If it is, it's possible
mm/page_alloc.c:720: * as a 2-level higher order page
mm/page_alloc.c:735:    return find_buddy_page_pfn(higher_page, higher_page_pfn, order + 1,
mm/page_alloc.c:2750: * split_page takes a non-compound higher-order page, and splits it into
mm/page_alloc.c:3587:   /* The OOM killer will not help higher order allocs */
mm/page_alloc.c:4811: *  within a 0 or higher order page.  Multiple fragments within that page
mm/page_alloc.c:6516:    * page allocator holds, ie. they can be part of higher order
mm/page_alloc.c:6790: * Break down a higher-order page in sub-pages, and keep our target out of


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ