diff options
-rw-r--r-- | net/rds/ib.c | 1 | ||||
-rw-r--r-- | net/rds/ib.h | 1 | ||||
-rw-r--r-- | net/rds/ib_recv.c | 2 | ||||
-rw-r--r-- | net/rds/iw.c | 1 | ||||
-rw-r--r-- | net/rds/iw.h | 1 | ||||
-rw-r--r-- | net/rds/iw_recv.c | 2 | ||||
-rw-r--r-- | net/rds/loop.c | 1 | ||||
-rw-r--r-- | net/rds/message.c | 6 | ||||
-rw-r--r-- | net/rds/rds.h | 2 | ||||
-rw-r--r-- | net/rds/tcp.c | 1 | ||||
-rw-r--r-- | net/rds/tcp.h | 1 | ||||
-rw-r--r-- | net/rds/tcp_recv.c | 2 |
12 files changed, 3 insertions, 18 deletions
diff --git a/net/rds/ib.c b/net/rds/ib.c index 72a5116c11de..932dacbdbea1 100644 --- a/net/rds/ib.c +++ b/net/rds/ib.c | |||
@@ -274,7 +274,6 @@ struct rds_transport rds_ib_transport = { | |||
274 | .conn_connect = rds_ib_conn_connect, | 274 | .conn_connect = rds_ib_conn_connect, |
275 | .conn_shutdown = rds_ib_conn_shutdown, | 275 | .conn_shutdown = rds_ib_conn_shutdown, |
276 | .inc_copy_to_user = rds_ib_inc_copy_to_user, | 276 | .inc_copy_to_user = rds_ib_inc_copy_to_user, |
277 | .inc_purge = rds_ib_inc_purge, | ||
278 | .inc_free = rds_ib_inc_free, | 277 | .inc_free = rds_ib_inc_free, |
279 | .cm_initiate_connect = rds_ib_cm_initiate_connect, | 278 | .cm_initiate_connect = rds_ib_cm_initiate_connect, |
280 | .cm_handle_connect = rds_ib_cm_handle_connect, | 279 | .cm_handle_connect = rds_ib_cm_handle_connect, |
diff --git a/net/rds/ib.h b/net/rds/ib.h index a303f13111c2..426035ac54a1 100644 --- a/net/rds/ib.h +++ b/net/rds/ib.h | |||
@@ -301,7 +301,6 @@ void rds_ib_recv_exit(void); | |||
301 | int rds_ib_recv(struct rds_connection *conn); | 301 | int rds_ib_recv(struct rds_connection *conn); |
302 | int rds_ib_recv_refill(struct rds_connection *conn, gfp_t kptr_gfp, | 302 | int rds_ib_recv_refill(struct rds_connection *conn, gfp_t kptr_gfp, |
303 | gfp_t page_gfp, int prefill); | 303 | gfp_t page_gfp, int prefill); |
304 | void rds_ib_inc_purge(struct rds_incoming *inc); | ||
305 | void rds_ib_inc_free(struct rds_incoming *inc); | 304 | void rds_ib_inc_free(struct rds_incoming *inc); |
306 | int rds_ib_inc_copy_to_user(struct rds_incoming *inc, struct iovec *iov, | 305 | int rds_ib_inc_copy_to_user(struct rds_incoming *inc, struct iovec *iov, |
307 | size_t size); | 306 | size_t size); |
diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index d0ee9c114c6c..e294d00abc80 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/ib_recv.c | |||
@@ -273,7 +273,7 @@ int rds_ib_recv_refill(struct rds_connection *conn, gfp_t kptr_gfp, | |||
273 | return ret; | 273 | return ret; |
274 | } | 274 | } |
275 | 275 | ||
276 | void rds_ib_inc_purge(struct rds_incoming *inc) | 276 | static void rds_ib_inc_purge(struct rds_incoming *inc) |
277 | { | 277 | { |
278 | struct rds_ib_incoming *ibinc; | 278 | struct rds_ib_incoming *ibinc; |
279 | struct rds_page_frag *frag; | 279 | struct rds_page_frag *frag; |
diff --git a/net/rds/iw.c b/net/rds/iw.c index c8f3d3525cb9..e766aecd46c9 100644 --- a/net/rds/iw.c +++ b/net/rds/iw.c | |||
@@ -272,7 +272,6 @@ struct rds_transport rds_iw_transport = { | |||
272 | .conn_connect = rds_iw_conn_connect, | 272 | .conn_connect = rds_iw_conn_connect, |
273 | .conn_shutdown = rds_iw_conn_shutdown, | 273 | .conn_shutdown = rds_iw_conn_shutdown, |
274 | .inc_copy_to_user = rds_iw_inc_copy_to_user, | 274 | .inc_copy_to_user = rds_iw_inc_copy_to_user, |
275 | .inc_purge = rds_iw_inc_purge, | ||
276 | .inc_free = rds_iw_inc_free, | 275 | .inc_free = rds_iw_inc_free, |
277 | .cm_initiate_connect = rds_iw_cm_initiate_connect, | 276 | .cm_initiate_connect = rds_iw_cm_initiate_connect, |
278 | .cm_handle_connect = rds_iw_cm_handle_connect, | 277 | .cm_handle_connect = rds_iw_cm_handle_connect, |
diff --git a/net/rds/iw.h b/net/rds/iw.h index eef2f0c28476..6f08300851ad 100644 --- a/net/rds/iw.h +++ b/net/rds/iw.h | |||
@@ -326,7 +326,6 @@ void rds_iw_recv_exit(void); | |||
326 | int rds_iw_recv(struct rds_connection *conn); | 326 | int rds_iw_recv(struct rds_connection *conn); |
327 | int rds_iw_recv_refill(struct rds_connection *conn, gfp_t kptr_gfp, | 327 | int rds_iw_recv_refill(struct rds_connection *conn, gfp_t kptr_gfp, |
328 | gfp_t page_gfp, int prefill); | 328 | gfp_t page_gfp, int prefill); |
329 | void rds_iw_inc_purge(struct rds_incoming *inc); | ||
330 | void rds_iw_inc_free(struct rds_incoming *inc); | 329 | void rds_iw_inc_free(struct rds_incoming *inc); |
331 | int rds_iw_inc_copy_to_user(struct rds_incoming *inc, struct iovec *iov, | 330 | int rds_iw_inc_copy_to_user(struct rds_incoming *inc, struct iovec *iov, |
332 | size_t size); | 331 | size_t size); |
diff --git a/net/rds/iw_recv.c b/net/rds/iw_recv.c index 48bcf4f2bf3c..7e929f701a0c 100644 --- a/net/rds/iw_recv.c +++ b/net/rds/iw_recv.c | |||
@@ -273,7 +273,7 @@ int rds_iw_recv_refill(struct rds_connection *conn, gfp_t kptr_gfp, | |||
273 | return ret; | 273 | return ret; |
274 | } | 274 | } |
275 | 275 | ||
276 | void rds_iw_inc_purge(struct rds_incoming *inc) | 276 | static void rds_iw_inc_purge(struct rds_incoming *inc) |
277 | { | 277 | { |
278 | struct rds_iw_incoming *iwinc; | 278 | struct rds_iw_incoming *iwinc; |
279 | struct rds_page_frag *frag; | 279 | struct rds_page_frag *frag; |
diff --git a/net/rds/loop.c b/net/rds/loop.c index a74b469a844a..9364de6dcd8b 100644 --- a/net/rds/loop.c +++ b/net/rds/loop.c | |||
@@ -176,7 +176,6 @@ struct rds_transport rds_loop_transport = { | |||
176 | .conn_connect = rds_loop_conn_connect, | 176 | .conn_connect = rds_loop_conn_connect, |
177 | .conn_shutdown = rds_loop_conn_shutdown, | 177 | .conn_shutdown = rds_loop_conn_shutdown, |
178 | .inc_copy_to_user = rds_message_inc_copy_to_user, | 178 | .inc_copy_to_user = rds_message_inc_copy_to_user, |
179 | .inc_purge = rds_message_inc_purge, | ||
180 | .inc_free = rds_message_inc_free, | 179 | .inc_free = rds_message_inc_free, |
181 | .t_name = "loopback", | 180 | .t_name = "loopback", |
182 | }; | 181 | }; |
diff --git a/net/rds/message.c b/net/rds/message.c index 7d678e217820..f681690b2bdc 100644 --- a/net/rds/message.c +++ b/net/rds/message.c | |||
@@ -75,12 +75,6 @@ static void rds_message_purge(struct rds_message *rm) | |||
75 | rds_mr_put(rm->rdma.m_rdma_mr); | 75 | rds_mr_put(rm->rdma.m_rdma_mr); |
76 | } | 76 | } |
77 | 77 | ||
78 | void rds_message_inc_purge(struct rds_incoming *inc) | ||
79 | { | ||
80 | struct rds_message *rm = container_of(inc, struct rds_message, m_inc); | ||
81 | rds_message_purge(rm); | ||
82 | } | ||
83 | |||
84 | void rds_message_put(struct rds_message *rm) | 78 | void rds_message_put(struct rds_message *rm) |
85 | { | 79 | { |
86 | rdsdebug("put rm %p ref %d\n", rm, atomic_read(&rm->m_refcount)); | 80 | rdsdebug("put rm %p ref %d\n", rm, atomic_read(&rm->m_refcount)); |
diff --git a/net/rds/rds.h b/net/rds/rds.h index 830e2bbb3332..0c610a102c20 100644 --- a/net/rds/rds.h +++ b/net/rds/rds.h | |||
@@ -422,7 +422,6 @@ struct rds_transport { | |||
422 | int (*recv)(struct rds_connection *conn); | 422 | int (*recv)(struct rds_connection *conn); |
423 | int (*inc_copy_to_user)(struct rds_incoming *inc, struct iovec *iov, | 423 | int (*inc_copy_to_user)(struct rds_incoming *inc, struct iovec *iov, |
424 | size_t size); | 424 | size_t size); |
425 | void (*inc_purge)(struct rds_incoming *inc); | ||
426 | void (*inc_free)(struct rds_incoming *inc); | 425 | void (*inc_free)(struct rds_incoming *inc); |
427 | 426 | ||
428 | int (*cm_handle_connect)(struct rdma_cm_id *cm_id, | 427 | int (*cm_handle_connect)(struct rdma_cm_id *cm_id, |
@@ -668,7 +667,6 @@ int rds_message_get_version_extension(struct rds_header *hdr, unsigned int *vers | |||
668 | int rds_message_add_rdma_dest_extension(struct rds_header *hdr, u32 r_key, u32 offset); | 667 | int rds_message_add_rdma_dest_extension(struct rds_header *hdr, u32 r_key, u32 offset); |
669 | int rds_message_inc_copy_to_user(struct rds_incoming *inc, | 668 | int rds_message_inc_copy_to_user(struct rds_incoming *inc, |
670 | struct iovec *first_iov, size_t size); | 669 | struct iovec *first_iov, size_t size); |
671 | void rds_message_inc_purge(struct rds_incoming *inc); | ||
672 | void rds_message_inc_free(struct rds_incoming *inc); | 670 | void rds_message_inc_free(struct rds_incoming *inc); |
673 | void rds_message_addref(struct rds_message *rm); | 671 | void rds_message_addref(struct rds_message *rm); |
674 | void rds_message_put(struct rds_message *rm); | 672 | void rds_message_put(struct rds_message *rm); |
diff --git a/net/rds/tcp.c b/net/rds/tcp.c index aebe10314fdb..831881640e56 100644 --- a/net/rds/tcp.c +++ b/net/rds/tcp.c | |||
@@ -266,7 +266,6 @@ struct rds_transport rds_tcp_transport = { | |||
266 | .conn_connect = rds_tcp_conn_connect, | 266 | .conn_connect = rds_tcp_conn_connect, |
267 | .conn_shutdown = rds_tcp_conn_shutdown, | 267 | .conn_shutdown = rds_tcp_conn_shutdown, |
268 | .inc_copy_to_user = rds_tcp_inc_copy_to_user, | 268 | .inc_copy_to_user = rds_tcp_inc_copy_to_user, |
269 | .inc_purge = rds_tcp_inc_purge, | ||
270 | .inc_free = rds_tcp_inc_free, | 269 | .inc_free = rds_tcp_inc_free, |
271 | .stats_info_copy = rds_tcp_stats_info_copy, | 270 | .stats_info_copy = rds_tcp_stats_info_copy, |
272 | .exit = rds_tcp_exit, | 271 | .exit = rds_tcp_exit, |
diff --git a/net/rds/tcp.h b/net/rds/tcp.h index 844fa6b9cf5a..c639872bf701 100644 --- a/net/rds/tcp.h +++ b/net/rds/tcp.h | |||
@@ -70,7 +70,6 @@ int __init rds_tcp_recv_init(void); | |||
70 | void rds_tcp_recv_exit(void); | 70 | void rds_tcp_recv_exit(void); |
71 | void rds_tcp_data_ready(struct sock *sk, int bytes); | 71 | void rds_tcp_data_ready(struct sock *sk, int bytes); |
72 | int rds_tcp_recv(struct rds_connection *conn); | 72 | int rds_tcp_recv(struct rds_connection *conn); |
73 | void rds_tcp_inc_purge(struct rds_incoming *inc); | ||
74 | void rds_tcp_inc_free(struct rds_incoming *inc); | 73 | void rds_tcp_inc_free(struct rds_incoming *inc); |
75 | int rds_tcp_inc_copy_to_user(struct rds_incoming *inc, struct iovec *iov, | 74 | int rds_tcp_inc_copy_to_user(struct rds_incoming *inc, struct iovec *iov, |
76 | size_t size); | 75 | size_t size); |
diff --git a/net/rds/tcp_recv.c b/net/rds/tcp_recv.c index ea7382908aa5..49c966010788 100644 --- a/net/rds/tcp_recv.c +++ b/net/rds/tcp_recv.c | |||
@@ -39,7 +39,7 @@ | |||
39 | 39 | ||
40 | static struct kmem_cache *rds_tcp_incoming_slab; | 40 | static struct kmem_cache *rds_tcp_incoming_slab; |
41 | 41 | ||
42 | void rds_tcp_inc_purge(struct rds_incoming *inc) | 42 | static void rds_tcp_inc_purge(struct rds_incoming *inc) |
43 | { | 43 | { |
44 | struct rds_tcp_incoming *tinc; | 44 | struct rds_tcp_incoming *tinc; |
45 | tinc = container_of(inc, struct rds_tcp_incoming, ti_inc); | 45 | tinc = container_of(inc, struct rds_tcp_incoming, ti_inc); |