staging: lustre: remove RCU2HANDLE macro
Remove RCU2HANDLE macro from lustre_handles.h. Signed-off-by: John L. Hammond <john.hammond@intel.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/11498 Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Bob Glossman <bob.glossman@intel.com> Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
83d36347ad
commit
bc3877b08b
@@ -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 */
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user