diff options
author | Dean Luick <dean.luick@intel.com> | 2016-07-28 22:21:25 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-08-03 05:46:21 +0300 |
commit | 082b3532915395ea6620ba691138baf151a543b0 (patch) | |
tree | 8c35869a82e5227b1085e6db4204d00f33e8ceea /drivers/infiniband/hw/hfi1/mmu_rb.c | |
parent | b85ced91511f6c3add9a74ae13e12ba568bfa1af (diff) | |
download | linux-082b3532915395ea6620ba691138baf151a543b0.tar.xz |
IB/hfi1: Remove unneeded mm argument in remove function
The reworked mmu_rb interface allows the unused mm argument to be removed.
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/mmu_rb.c')
-rw-r--r-- | drivers/infiniband/hw/hfi1/mmu_rb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/hfi1/mmu_rb.c b/drivers/infiniband/hw/hfi1/mmu_rb.c index 76f7b0403207..a02344a9d746 100644 --- a/drivers/infiniband/hw/hfi1/mmu_rb.c +++ b/drivers/infiniband/hw/hfi1/mmu_rb.c @@ -253,8 +253,7 @@ void hfi1_mmu_rb_evict(struct mmu_rb_handler *handler, void *evict_arg) while (!list_empty(&del_list)) { rbnode = list_first_entry(&del_list, struct mmu_rb_node, list); list_del(&rbnode->list); - handler->ops->remove(handler->ops_arg, rbnode, - handler->mm); + handler->ops->remove(handler->ops_arg, rbnode); } } @@ -275,7 +274,7 @@ void hfi1_mmu_rb_remove(struct mmu_rb_handler *handler, __mmu_int_rb_remove(node, &handler->root); spin_unlock_irqrestore(&handler->lock, flags); - handler->ops->remove(handler->ops_arg, node, NULL); + handler->ops->remove(handler->ops_arg, node); } static inline void mmu_notifier_page(struct mmu_notifier *mn, @@ -335,7 +334,7 @@ static void do_remove(struct mmu_rb_handler *handler, while (!list_empty(del_list)) { node = list_first_entry(del_list, struct mmu_rb_node, list); list_del(&node->list); - handler->ops->remove(handler->ops_arg, node, handler->mm); + handler->ops->remove(handler->ops_arg, node); } } |