From: Matthew Wilcox Date: Thu, 17 Jan 2019 16:36:28 +0000 (-0500) Subject: uverbs: Fix comments X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9542d66850bd0e0f57aad68f599c6b5ed8f77ad8;p=users%2Fwilly%2Fxarray.git uverbs: Fix comments A couple of comments missed conversion from IDR to XArray terminology. Signed-off-by: Matthew Wilcox --- diff --git a/drivers/infiniband/core/rdma_core.c b/drivers/infiniband/core/rdma_core.c index ccf4d069c25c9..aead31a5aa32e 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.