]> www.infradead.org Git - users/willy/xarray.git/commitdiff
uverbs: Fix comments
authorMatthew Wilcox <willy@infradead.org>
Thu, 17 Jan 2019 16:36:28 +0000 (11:36 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 8 Aug 2019 03:35:00 +0000 (23:35 -0400)
A couple of comments missed conversion from IDR to XArray terminology.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
drivers/infiniband/core/rdma_core.c

index ccf4d069c25c995a1078b31c3892c9585a3143c2..aead31a5aa32e3db969e38bf4d4c74383d6b9c51 100644 (file)
@@ -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.