[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YUdHcXHWNs5Px9AD@casper.infradead.org>
Date: Sun, 19 Sep 2021 15:21:37 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Oleksandr Natalenko <oleksandr@...alenko.name>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Andrew Morton <akpm@...ux-foundation.org>,
Vlastimil Babka <vbabka@...e.cz>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Miaohe Lin <linmiaohe@...wei.com>,
Michal Hocko <mhocko@...nel.org>,
Mel Gorman <mgorman@...hsingularity.net>,
Stephen Rothwell <sfr@...b.auug.org.au>,
David Laight <David.Laight@...lab.com>
Subject: Re: [RFC v2 PATCH 1/3] mm: add PG2KB/KB2PG helper macros
On Sun, Sep 19, 2021 at 03:12:46PM +0200, Oleksandr Natalenko wrote:
> +#define PG2KB(x) ((x) << (PAGE_SHIFT - 10))
> +#define KB2PG(x) ((x) >> (PAGE_SHIFT - 10))
This is not an improvement.
Powered by blists - more mailing lists