[<prev] [next>] [day] [month] [year] [list]
Message-ID: <b6f134e7-cc2f-49f2-8c52-8ff0bacc3941@linux.dev>
Date: Mon, 6 Nov 2023 23:20:30 +0300
From: Vasily Averin <vasily.averin@...ux.dev>
To: Sergey Senozhatsky <senozhatsky@...omium.org>,
Minchan Kim <minchan@...nel.org>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux-block@...r.kernel.org
Subject: question about ZRAM_HUGE flag
ZRAM_HUGE flag doubles most significant bit in zram size.
I had an idea to redefine it, but do not fully understand how to do it correctly.
I'm sure that MSB = PAGE_SHIFT on BIG_ENDIAN but do not understand what's happen on LITTLE_ENDIAN?
Is MSB = 0 in this case? Could it have some other unpredictable value?
In any case I think we can always replace ZRAM_HUGE bit check by BIT(PAGE_SHIFT) test.
Thank you,
Vasily Averin
Powered by blists - more mailing lists