summaryrefslogtreecommitdiff
path: root/arch/alpha/boot
diff options
context:
space:
mode:
authorChengming Zhou <chengming.zhou@linux.dev>2024-02-28 05:38:54 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-03-05 04:01:28 +0300
commit26e93839d6d9d9c6169fa7559b8d1577e42d4ace (patch)
tree8e900da028b540bbd953b1061d99cb02141755ab /arch/alpha/boot
parent6c1b748ebf27befffec83b77ca1960bf70ed6ac9 (diff)
downloadlinux-26e93839d6d9d9c6169fa7559b8d1577e42d4ace.tar.xz
mm/zsmalloc: don't need to reserve LSB in handle
We will save allocated tag in the object header to indicate that it's allocated. handle |= OBJ_ALLOCATED_TAG; So the object header needs to reserve LSB for this tag bit. But the handle itself doesn't need to reserve LSB to save tag, since it's only used to find the position of object, by (pfn + obj_idx). So remove LSB reserve from handle, one more bit can be used as obj_idx. Link: https://lkml.kernel.org/r/20240228023854.3511239-1-chengming.zhou@linux.dev Signed-off-by: Chengming Zhou <chengming.zhou@linux.dev> Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Minchan Kim <minchan@kernel.org> Cc: Nhat Pham <nphamcs@gmail.com> Cc: Yosry Ahmed <yosryahmed@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/alpha/boot')
0 files changed, 0 insertions, 0 deletions