diff options
author | Brendan Cunningham <bcunningham@cornelisnetworks.com> | 2023-05-19 18:54:25 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2023-06-01 19:45:58 +0200 |
commit | 95ea2efbd66fb9e85238bd8d59341f8ce7a31065 (patch) | |
tree | 3bdf24063aedc0b331a09f4236876a3c6d04b99a /drivers/infiniband/hw/hfi1/mmu_rb.h | |
parent | IB/hfi1: Add mmu_rb_node refcount to hfi1_mmu_rb_template tracepoints (diff) | |
download | linux-95ea2efbd66fb9e85238bd8d59341f8ce7a31065.tar.xz linux-95ea2efbd66fb9e85238bd8d59341f8ce7a31065.zip |
IB/hfi1: Remove unused struct mmu_rb_ops fields .insert, .invalidate
The struct mmu_rb_ops function pointers .insert, .invalidate were only
used to increment and decrement struct sdma_mmu_node.refcount.
With the deletion of struct sdma_mmu_node.refcount and the addition of
struct mmu_rb_node.refcount these function pointers are not called and
there are no implementations of them. So it is safe to delete these from
struct mmu_rb_ops.
Link: https://lore.kernel.org/r/168451526508.3702129.8677714753157495310.stgit@awfm-02.cornelisnetworks.com
Signed-off-by: Brendan Cunningham <bcunningham@cornelisnetworks.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/infiniband/hw/hfi1/mmu_rb.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/hfi1/mmu_rb.h b/drivers/infiniband/hw/hfi1/mmu_rb.h index 82c505a04fc6..751dc3fe1e02 100644 --- a/drivers/infiniband/hw/hfi1/mmu_rb.h +++ b/drivers/infiniband/hw/hfi1/mmu_rb.h @@ -19,16 +19,11 @@ struct mmu_rb_node { struct kref refcount; }; -/* - * NOTE: filter, insert, invalidate, and evict must not sleep. Only remove is - * allowed to sleep. - */ +/* filter and evict must not sleep. Only remove is allowed to sleep. */ struct mmu_rb_ops { bool (*filter)(struct mmu_rb_node *node, unsigned long addr, unsigned long len); - int (*insert)(void *ops_arg, struct mmu_rb_node *mnode); void (*remove)(void *ops_arg, struct mmu_rb_node *mnode); - int (*invalidate)(void *ops_arg, struct mmu_rb_node *node); int (*evict)(void *ops_arg, struct mmu_rb_node *mnode, void *evict_arg, bool *stop); }; |