Whamcloud - gitweb
LU-12542 handles: discard h_owner in favour of h_ops
[fs/lustre-release.git] / lustre / include / lustre_handles.h
index feab792..bbbefad 100644 (file)
@@ -61,8 +61,7 @@ struct portals_handle_ops {
 struct portals_handle {
        struct list_head                h_link;
        __u64                           h_cookie;
-       const void                     *h_owner;
-       struct portals_handle_ops      *h_ops;
+       const struct portals_handle_ops *h_ops;
 
        /* newly added fields to handle the RCU issue. -jxiong */
        struct rcu_head                 h_rcu;
@@ -75,9 +74,9 @@ struct portals_handle {
 
 /* Add a handle to the hash table */
 void class_handle_hash(struct portals_handle *,
-                      struct portals_handle_ops *ops);
+                      const struct portals_handle_ops *ops);
 void class_handle_unhash(struct portals_handle *);
-void *class_handle2object(__u64 cookie, const void *owner);
+void *class_handle2object(u64 cookie, const struct portals_handle_ops *ops);
 void class_handle_free_cb(struct rcu_head *rcu);
 int class_handle_init(void);
 void class_handle_cleanup(void);