diff options
| author | Matthew Wilcox <willy@infradead.org> | 2019-01-26 00:52:26 -0500 |
|---|---|---|
| committer | Matthew Wilcox <willy@infradead.org> | 2019-02-04 23:16:58 -0500 |
| commit | 809ab9371ca0a96b44d9866ad82849410759a45b (patch) | |
| tree | 57f70feee92687a74b7e39b88b88946f48e3e523 /include/linux/xarray.h | |
| parent | bd54211b8e199ffb701ec98bf4f301e4a6f38a92 (diff) | |
XArray: Update xa_erase family descriptions
xa_erase does not allocate memory and doesn't have a gfp parameter.
Update the descriptions of all four variants to be more useful.
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'include/linux/xarray.h')
| -rw-r--r-- | include/linux/xarray.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/xarray.h b/include/linux/xarray.h index 5d9d318bcf7a..e11841537631 100644 --- a/include/linux/xarray.h +++ b/include/linux/xarray.h | |||
| @@ -526,9 +526,9 @@ static inline void *xa_store_irq(struct xarray *xa, unsigned long index, | |||
| 526 | * @xa: XArray. | 526 | * @xa: XArray. |
| 527 | * @index: Index of entry. | 527 | * @index: Index of entry. |
| 528 | * | 528 | * |
| 529 | * This function is the equivalent of calling xa_store() with %NULL as | 529 | * After this function returns, loading from @index will return %NULL. |
| 530 | * the third argument. The XArray does not need to allocate memory, so | 530 | * If the index is part of a multi-index entry, all indices will be erased |
| 531 | * the user does not need to provide GFP flags. | 531 | * and none of the entries will be part of a multi-index entry. |
| 532 | * | 532 | * |
| 533 | * Context: Any context. Takes and releases the xa_lock while | 533 | * Context: Any context. Takes and releases the xa_lock while |
| 534 | * disabling softirqs. | 534 | * disabling softirqs. |
| @@ -550,9 +550,9 @@ static inline void *xa_erase_bh(struct xarray *xa, unsigned long index) | |||
| 550 | * @xa: XArray. | 550 | * @xa: XArray. |
| 551 | * @index: Index of entry. | 551 | * @index: Index of entry. |
| 552 | * | 552 | * |
| 553 | * This function is the equivalent of calling xa_store() with %NULL as | 553 | * After this function returns, loading from @index will return %NULL. |
| 554 | * the third argument. The XArray does not need to allocate memory, so | 554 | * If the index is part of a multi-index entry, all indices will be erased |
| 555 | * the user does not need to provide GFP flags. | 555 | * and none of the entries will be part of a multi-index entry. |
| 556 | * | 556 | * |
| 557 | * Context: Process context. Takes and releases the xa_lock while | 557 | * Context: Process context. Takes and releases the xa_lock while |
| 558 | * disabling interrupts. | 558 | * disabling interrupts. |
