diff options
author | 2024-12-18 15:34:19 +0900 | |
---|---|---|
committer | 2025-01-25 20:22:20 -0800 | |
commit | b4444a849f1827c04df81a6f1ef26ddb6f072a94 (patch) | |
tree | be3838f2c349b952131da6dd343afb3fa4ad2e2c /mm/hugetlb.c | |
parent | zram: free slot memory early during write (diff) | |
download | wireguard-linux-b4444a849f1827c04df81a6f1ef26ddb6f072a94.tar.xz wireguard-linux-b4444a849f1827c04df81a6f1ef26ddb6f072a94.zip |
zram: remove entry element member
Element is in the same anon union as handle and hence holds the same
value, which makes code below sort of confusing
handle = zram_get_handle()
if (!handle)
element = zram_get_element()
Element doesn't really simplify the code, let's just remove it. We
already re-purpose handle to store the block id a written back page.
Link: https://lkml.kernel.org/r/20241218063513.297475-3-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions