Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

maple_tree: fix MAPLE_PARENT_RANGE32 and parent pointer docs

MAPLE_PARENT_RANGE32 should be 0x02 as a 32 bit node is indicated by the
bit pattern 0b010 which is the hex value 0x02. There are no users
currently, so there is no associated bug with this wrong value.

Fix typo Note -> Node and replace x with b to indicate binary values.

Link: https://lkml.kernel.org/r/20250826151344.403286-1-sidhartha.kumar@oracle.com
Fixes: 54a611b60590 ("Maple Tree: add new data structure")
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Sidhartha Kumar and committed by
Andrew Morton
ef49b7b3 e76e09bd

+14 -14
+8 -8
include/linux/maple_tree.h
··· 57 57 * MT_FLAGS_ALLOC_RANGE flag. 58 58 * 59 59 * Node types: 60 - * 0x??1 = Root 61 - * 0x?00 = 16 bit nodes 62 - * 0x010 = 32 bit nodes 63 - * 0x110 = 64 bit nodes 60 + * 0b??1 = Root 61 + * 0b?00 = 16 bit nodes 62 + * 0b010 = 32 bit nodes 63 + * 0b110 = 64 bit nodes 64 64 * 65 65 * Slot size and location in the parent pointer: 66 66 * type : slot location 67 - * 0x??1 : Root 68 - * 0x?00 : 16 bit values, type in 0-1, slot in 2-6 69 - * 0x010 : 32 bit values, type in 0-2, slot in 3-6 70 - * 0x110 : 64 bit values, type in 0-2, slot in 3-6 67 + * 0b??1 : Root 68 + * 0b?00 : 16 bit values, type in 0-1, slot in 2-6 69 + * 0b010 : 32 bit values, type in 0-2, slot in 3-6 70 + * 0b110 : 64 bit values, type in 0-2, slot in 3-6 71 71 */ 72 72 73 73 /*
+6 -6
lib/maple_tree.c
··· 405 405 * a reuse of the last bit in the node type. This is possible by using bit 1 to 406 406 * indicate if bit 2 is part of the type or the slot. 407 407 * 408 - * Note types: 409 - * 0x??1 = Root 410 - * 0x?00 = 16 bit nodes 411 - * 0x010 = 32 bit nodes 412 - * 0x110 = 64 bit nodes 408 + * Node types: 409 + * 0b??1 = Root 410 + * 0b?00 = 16 bit nodes 411 + * 0b010 = 32 bit nodes 412 + * 0b110 = 64 bit nodes 413 413 * 414 414 * Slot size and alignment 415 415 * 0b??1 : Root ··· 427 427 #define MAPLE_PARENT_16B_SLOT_MASK 0xFC 428 428 429 429 #define MAPLE_PARENT_RANGE64 0x06 430 - #define MAPLE_PARENT_RANGE32 0x04 430 + #define MAPLE_PARENT_RANGE32 0x02 431 431 #define MAPLE_PARENT_NOT_RANGE16 0x02 432 432 433 433 /*