diff options
author | Andy Grover <andy.grover@oracle.com> | 2010-01-27 21:04:18 -0500 |
---|---|---|
committer | Andy Grover <andy.grover@oracle.com> | 2010-09-08 21:11:59 -0400 |
commit | 6c7cc6e4694dc464ae884332f2a322973497e3cf (patch) | |
tree | 9af8e2e0874ce78f9a500e22a79f9274f5efe0fd /net/rds/send.c | |
parent | f8b3aaf2ba8ca9e27b47f8bfdff07c8b968f2c05 (diff) |
RDS: Rename data op members prefix from m_ to op_
For consistency.
Signed-off-by: Andy Grover <andy.grover@oracle.com>
Diffstat (limited to 'net/rds/send.c')
-rw-r--r-- | net/rds/send.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/rds/send.c b/net/rds/send.c index 08df279ced2a..d60d31309032 100644 --- a/net/rds/send.c +++ b/net/rds/send.c | |||
@@ -166,7 +166,7 @@ int rds_send_xmit(struct rds_connection *conn) | |||
166 | rm = conn->c_xmit_rm; | 166 | rm = conn->c_xmit_rm; |
167 | if (rm && | 167 | if (rm && |
168 | conn->c_xmit_hdr_off == sizeof(struct rds_header) && | 168 | conn->c_xmit_hdr_off == sizeof(struct rds_header) && |
169 | conn->c_xmit_sg == rm->data.m_nents) { | 169 | conn->c_xmit_sg == rm->data.op_nents) { |
170 | conn->c_xmit_rm = NULL; | 170 | conn->c_xmit_rm = NULL; |
171 | conn->c_xmit_sg = 0; | 171 | conn->c_xmit_sg = 0; |
172 | conn->c_xmit_hdr_off = 0; | 172 | conn->c_xmit_hdr_off = 0; |
@@ -296,7 +296,7 @@ int rds_send_xmit(struct rds_connection *conn) | |||
296 | 296 | ||
297 | if (rm->data.op_active | 297 | if (rm->data.op_active |
298 | && (conn->c_xmit_hdr_off < sizeof(struct rds_header) || | 298 | && (conn->c_xmit_hdr_off < sizeof(struct rds_header) || |
299 | conn->c_xmit_sg < rm->data.m_nents)) { | 299 | conn->c_xmit_sg < rm->data.op_nents)) { |
300 | ret = conn->c_trans->xmit(conn, rm, | 300 | ret = conn->c_trans->xmit(conn, rm, |
301 | conn->c_xmit_hdr_off, | 301 | conn->c_xmit_hdr_off, |
302 | conn->c_xmit_sg, | 302 | conn->c_xmit_sg, |
@@ -312,7 +312,7 @@ int rds_send_xmit(struct rds_connection *conn) | |||
312 | ret -= tmp; | 312 | ret -= tmp; |
313 | } | 313 | } |
314 | 314 | ||
315 | sg = &rm->data.m_sg[conn->c_xmit_sg]; | 315 | sg = &rm->data.op_sg[conn->c_xmit_sg]; |
316 | while (ret) { | 316 | while (ret) { |
317 | tmp = min_t(int, ret, sg->length - | 317 | tmp = min_t(int, ret, sg->length - |
318 | conn->c_xmit_data_off); | 318 | conn->c_xmit_data_off); |
@@ -323,7 +323,7 @@ int rds_send_xmit(struct rds_connection *conn) | |||
323 | sg++; | 323 | sg++; |
324 | conn->c_xmit_sg++; | 324 | conn->c_xmit_sg++; |
325 | BUG_ON(ret != 0 && | 325 | BUG_ON(ret != 0 && |
326 | conn->c_xmit_sg == rm->data.m_nents); | 326 | conn->c_xmit_sg == rm->data.op_nents); |
327 | } | 327 | } |
328 | } | 328 | } |
329 | } | 329 | } |
@@ -959,7 +959,7 @@ int rds_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, | |||
959 | goto out; | 959 | goto out; |
960 | } | 960 | } |
961 | 961 | ||
962 | rm->data.m_sg = rds_message_alloc_sgs(rm, ceil(payload_len, PAGE_SIZE)); | 962 | rm->data.op_sg = rds_message_alloc_sgs(rm, ceil(payload_len, PAGE_SIZE)); |
963 | /* XXX fix this to not allocate memory */ | 963 | /* XXX fix this to not allocate memory */ |
964 | ret = rds_message_copy_from_user(rm, msg->msg_iov, payload_len); | 964 | ret = rds_message_copy_from_user(rm, msg->msg_iov, payload_len); |
965 | if (ret) | 965 | if (ret) |