[PATCH v2 1/4] radix-tree: add parameter doc for radix_tree_deref_slot_protected()

From: Wolfram Sang

Date: Mon Jun 22 2026 - 04:54:51 EST


Add the missing documentation for the 'treelock' parameter.

Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
---
include/linux/radix-tree.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/linux/radix-tree.h b/include/linux/radix-tree.h
index eae67015ce51..b8997f07b2d4 100644
--- a/include/linux/radix-tree.h
+++ b/include/linux/radix-tree.h
@@ -182,6 +182,7 @@ static inline void *radix_tree_deref_slot(void __rcu **slot)
/**
* radix_tree_deref_slot_protected - dereference a slot with tree lock held
* @slot: slot pointer, returned by radix_tree_lookup_slot
+ * @treelock: pointer to the spinlock protecting the tree
*
* Similar to radix_tree_deref_slot. The caller does not hold the RCU read
* lock but it must hold the tree lock to prevent parallel updates.
--
2.47.3