[PATCH 1/1] kho: fix KHO_TREE_MAX_DEPTH for non-4KB page sizes
Mike Rapoport
rppt at kernel.org
Sun May 10 08:26:26 PDT 2026
From: Mike Rapoport (Microsoft) <rppt at kernel.org>
On Sat, 09 May 2026 10:44:15 +0800, George Guo wrote:
> KHO_TREE_MAX_DEPTH is calculated as:
>
> DIV_ROUND_UP(KHO_ORDER_0_LOG2 - KHO_BITMAP_SIZE_LOG2,
> KHO_TABLE_SIZE_LOG2) + 1
>
> For systems with 16KB pages (e.g. LoongArch), this gives a depth of 4,
> with the top-level shift at bit 39. The order-0 bit sits at bit 50
> (KHO_ORDER_0_LOG2 = 64 - PAGE_SHIFT = 50). When inserting or reading
> a key, the index extracted at the top level is:
>
> [...]
Applied to fixes branch of liveupdate/linux.git tree, thanks!
[1/1] kho: fix KHO_TREE_MAX_DEPTH for non-4KB page sizes
commit: eaf3933ec58da601cf0008afbcca7cf5433321e8
tree: https://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux
branch: fixes
--
Sincerely yours,
Mike.
More information about the kexec
mailing list