XArray: Fix split documentation

I wrote the documentation backwards; the new order of the entry is stored
in the xas and the caller passes the old entry.
Reported-by: default avatarZi Yan <ziy@nvidia.com>
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
parent 17860cca
...@@ -987,7 +987,7 @@ static void node_set_marks(struct xa_node *node, unsigned int offset, ...@@ -987,7 +987,7 @@ static void node_set_marks(struct xa_node *node, unsigned int offset,
* xas_split_alloc() - Allocate memory for splitting an entry. * xas_split_alloc() - Allocate memory for splitting an entry.
* @xas: XArray operation state. * @xas: XArray operation state.
* @entry: New entry which will be stored in the array. * @entry: New entry which will be stored in the array.
* @order: New entry order. * @order: Current entry order.
* @gfp: Memory allocation flags. * @gfp: Memory allocation flags.
* *
* This function should be called before calling xas_split(). * This function should be called before calling xas_split().
...@@ -1041,9 +1041,10 @@ EXPORT_SYMBOL_GPL(xas_split_alloc); ...@@ -1041,9 +1041,10 @@ EXPORT_SYMBOL_GPL(xas_split_alloc);
* xas_split() - Split a multi-index entry into smaller entries. * xas_split() - Split a multi-index entry into smaller entries.
* @xas: XArray operation state. * @xas: XArray operation state.
* @entry: New entry to store in the array. * @entry: New entry to store in the array.
* @order: New entry order. * @order: Current entry order.
* *
* The value in the entry is copied to all the replacement entries. * The size of the new entries is set in @xas. The value in @entry is
* copied to all the replacement entries.
* *
* Context: Any context. The caller should hold the xa_lock. * Context: Any context. The caller should hold the xa_lock.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment