[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200213141953.ijmts6cs5eh5pgfx@box>
Date: Thu, 13 Feb 2020 17:19:53 +0300
From: "Kirill A. Shutemov" <kirill@...temov.name>
To: Matthew Wilcox <willy@...radead.org>
Cc: linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 07/25] mm: Introduce thp_size
On Tue, Feb 11, 2020 at 08:18:27PM -0800, Matthew Wilcox wrote:
> From: "Matthew Wilcox (Oracle)" <willy@...radead.org>
>
> This is like page_size(), but compiles down to just PAGE_SIZE if THP
> are disabled. Convert the users of hpage_nr_pages() which would prefer
> this interface.
>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@...radead.org>
I would prefer the new helper to be inline function rather than macro.
Otherwise looks good.
--
Kirill A. Shutemov
Powered by blists - more mailing lists