Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc3877b0 authored by John L. Hammond's avatar John L. Hammond Committed by Greg Kroah-Hartman
Browse files

staging: lustre: remove RCU2HANDLE macro

parent 83d36347
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -76,8 +76,6 @@ struct portals_handle {
	unsigned int			h_in:1;
};

#define RCU2HANDLE(rcu)    container_of(rcu, struct portals_handle, h_rcu)

/* handles.c */

/* Add a handle to the hash table */
+5 −2
Original line number Diff line number Diff line
@@ -164,8 +164,11 @@ EXPORT_SYMBOL(class_handle2object);

void class_handle_free_cb(struct rcu_head *rcu)
{
	struct portals_handle *h = RCU2HANDLE(rcu);
	void *ptr = (void *)(unsigned long)h->h_cookie;
	struct portals_handle *h;
	void *ptr;

	h = container_of(rcu, struct portals_handle, h_rcu);
	ptr = (void *)(unsigned long)h->h_cookie;

	if (h->h_ops->hop_free)
		h->h_ops->hop_free(ptr, h->h_size);