* question about ZRAM_HUGE flag
@ 2023-11-06 20:20 Vasily Averin
0 siblings, 0 replies; only message in thread
From: Vasily Averin @ 2023-11-06 20:20 UTC (permalink / raw)
To: Sergey Senozhatsky, Minchan Kim; +Cc: linux-kernel, linux-block
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-06 20:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-06 20:20 question about ZRAM_HUGE flag Vasily Averin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®