[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y2tKixpO4RO6DgW5@tuxmaker.boeblingen.de.ibm.com>
Date: Wed, 9 Nov 2022 07:36:59 +0100
From: Alexander Gordeev <agordeev@...ux.ibm.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Hugh Dickins <hughd@...gle.com>,
Johannes Weiner <hannes@...xchg.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH 1/4] mm: introduce 'encoded' page pointers with embedded
extra bits
On Tue, Nov 08, 2022 at 11:41:36AM -0800, Linus Torvalds wrote:
Hi Linus,
[...]
> +struct encoded_page;
> +#define ENCODE_PAGE_BITS 3ul
> +static inline struct encoded_page *encode_page(struct page *page, unsigned long flags)
> +{
Any reaction in case ((flags & ~ENCODE_PAGE_BITS) != 0)?
> + return (struct encoded_page *)(flags | (unsigned long)page);
> +}
Thanks!
Powered by blists - more mailing lists