[PATCH] fmr pool: remove unnecessary pointer dereference
authorMichael S. Tsirkin <mst@mellanox.co.il>
Fri, 14 Jul 2006 07:23:55 +0000 (00:23 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 15 Jul 2006 04:53:51 +0000 (21:53 -0700)
commitadfaa888a292e7f38fb43668d8994f246e371f0f
treeb84155cedf9a1361ff4f7b0586c9b0be702ca605
parent74f76fbac72c84ac78620698a584d403b655e62a
[PATCH] fmr pool: remove unnecessary pointer dereference

ib_fmr_pool_map_phys gets the virtual address by pointer but never writes
there, and users (e.g.  srp) seem to assume this and ignore the value
returned.  This patch cleans up the API to get the VA by value, and updates
all users.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Acked-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/infiniband/core/fmr_pool.c
drivers/infiniband/ulp/iser/iser_verbs.c
drivers/infiniband/ulp/srp/ib_srp.c
include/rdma/ib_fmr_pool.h