From 9542d66850bd0e0f57aad68f599c6b5ed8f77ad8 Mon Sep 17 00:00:00 2001 From: Matthew Wilcox Date: Thu, 17 Jan 2019 11:36:28 -0500 Subject: [PATCH] uverbs: Fix comments A couple of comments missed conversion from IDR to XArray terminology. Signed-off-by: Matthew Wilcox --- drivers/infiniband/core/rdma_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/core/rdma_core.c b/drivers/infiniband/core/rdma_core.c index ccf4d069c25c..aead31a5aa32 100644 --- a/drivers/infiniband/core/rdma_core.c +++ b/drivers/infiniband/core/rdma_core.c @@ -319,8 +319,8 @@ lookup_get_idr_uobject(const struct uverbs_api_object *obj, rcu_read_lock(); /* - * The idr_find is guaranteed to return a pointer to something that - * isn't freed yet, or NULL, as the free after idr_remove goes through + * The xa_load is guaranteed to return a pointer to something that + * isn't freed yet, or NULL, as the free after xa_erase goes through * kfree_rcu(). However the object may still have been released and * kfree() could be called at any time. */ @@ -571,7 +571,7 @@ static int alloc_commit_idr_uobject(struct ib_uobject *uobj) void *old; /* - * We already allocated this IDR with a NULL object, so + * We already allocated this index with a NULL object, so * this shouldn't fail. * * NOTE: Storing the uobj transfers our kref on uobj to the XArray. -- 2.50.1