提交 8446466c 编写于 作者: M Matthew Wilcox (Oracle)

XArray: Fix xas_for_each_conflict documentation

At one point, xas_for_each_conflict() was going to work this way,
and I forgot to update the documentation when I changed my mind.
Signed-off-by: NMatthew Wilcox (Oracle) <willy@infradead.org>
上级 04e9e9bb
...@@ -1714,13 +1714,12 @@ enum { ...@@ -1714,13 +1714,12 @@ enum {
* @xas: XArray operation state. * @xas: XArray operation state.
* @entry: Entry retrieved from the array. * @entry: Entry retrieved from the array.
* *
* The loop body will be executed for each entry in the XArray that lies * The loop body will be executed for each entry in the XArray that
* within the range specified by @xas. If the loop completes successfully, * lies within the range specified by @xas. If the loop terminates
* any entries that lie in this range will be replaced by @entry. The caller * normally, @entry will be %NULL. The user may break out of the loop,
* may break out of the loop; if they do so, the contents of the XArray will * which will leave @entry set to the conflicting entry. The caller
* be unchanged. The operation may fail due to an out of memory condition. * may also call xa_set_err() to exit the loop while setting an error
* The caller may also call xa_set_err() to exit the loop while setting an * to record the reason.
* error to record the reason.
*/ */
#define xas_for_each_conflict(xas, entry) \ #define xas_for_each_conflict(xas, entry) \
while ((entry = xas_find_conflict(xas))) while ((entry = xas_find_conflict(xas)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册