[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f30438ab-01e4-4847-a72d-5a4107d7ba46@linux.dev>
Date: Mon, 6 Nov 2023 23:03:44 +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-block@...r.kernel.org
Subject: Re: [PATCH] zram: extra zram_get_element call in
zram_read_from_zspool()
On 11/6/23 22:55, Vasily Averin wrote:
> 'element' and 'handle' are union in struct zram_table_entry.
struct zram_table_entry {
union {
unsigned long handle;
unsigned long element;
};
I do not understand the sense of this union.
>From my POV it just makes it harder to check the code because an reviewer doesn't
expect that the zram element can't be used together.
Can I remove this union at all and replace zram_get/set_element calls by zram_get/set_handle instead?
Thank you,
Vasily Averin
Powered by blists - more mailing lists