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/message.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/message.c')
-rw-r--r-- | net/rds/message.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/net/rds/message.c b/net/rds/message.c index bca7eda6dde9..4bd9504ca048 100644 --- a/net/rds/message.c +++ b/net/rds/message.c | |||
@@ -62,12 +62,12 @@ static void rds_message_purge(struct rds_message *rm) | |||
62 | if (unlikely(test_bit(RDS_MSG_PAGEVEC, &rm->m_flags))) | 62 | if (unlikely(test_bit(RDS_MSG_PAGEVEC, &rm->m_flags))) |
63 | return; | 63 | return; |
64 | 64 | ||
65 | for (i = 0; i < rm->data.m_nents; i++) { | 65 | for (i = 0; i < rm->data.op_nents; i++) { |
66 | rdsdebug("putting data page %p\n", (void *)sg_page(&rm->data.m_sg[i])); | 66 | rdsdebug("putting data page %p\n", (void *)sg_page(&rm->data.op_sg[i])); |
67 | /* XXX will have to put_page for page refs */ | 67 | /* XXX will have to put_page for page refs */ |
68 | __free_page(sg_page(&rm->data.m_sg[i])); | 68 | __free_page(sg_page(&rm->data.op_sg[i])); |
69 | } | 69 | } |
70 | rm->data.m_nents = 0; | 70 | rm->data.op_nents = 0; |
71 | 71 | ||
72 | if (rm->rdma.op_active) | 72 | if (rm->rdma.op_active) |
73 | rds_rdma_free_op(&rm->rdma); | 73 | rds_rdma_free_op(&rm->rdma); |
@@ -261,11 +261,11 @@ struct rds_message *rds_message_map_pages(unsigned long *page_addrs, unsigned in | |||
261 | 261 | ||
262 | set_bit(RDS_MSG_PAGEVEC, &rm->m_flags); | 262 | set_bit(RDS_MSG_PAGEVEC, &rm->m_flags); |
263 | rm->m_inc.i_hdr.h_len = cpu_to_be32(total_len); | 263 | rm->m_inc.i_hdr.h_len = cpu_to_be32(total_len); |
264 | rm->data.m_nents = ceil(total_len, PAGE_SIZE); | 264 | rm->data.op_nents = ceil(total_len, PAGE_SIZE); |
265 | rm->data.m_sg = rds_message_alloc_sgs(rm, num_sgs); | 265 | rm->data.op_sg = rds_message_alloc_sgs(rm, num_sgs); |
266 | 266 | ||
267 | for (i = 0; i < rm->data.m_nents; ++i) { | 267 | for (i = 0; i < rm->data.op_nents; ++i) { |
268 | sg_set_page(&rm->data.m_sg[i], | 268 | sg_set_page(&rm->data.op_sg[i], |
269 | virt_to_page(page_addrs[i]), | 269 | virt_to_page(page_addrs[i]), |
270 | PAGE_SIZE, 0); | 270 | PAGE_SIZE, 0); |
271 | } | 271 | } |
@@ -288,7 +288,7 @@ int rds_message_copy_from_user(struct rds_message *rm, struct iovec *first_iov, | |||
288 | /* | 288 | /* |
289 | * now allocate and copy in the data payload. | 289 | * now allocate and copy in the data payload. |
290 | */ | 290 | */ |
291 | sg = rm->data.m_sg; | 291 | sg = rm->data.op_sg; |
292 | iov = first_iov; | 292 | iov = first_iov; |
293 | iov_off = 0; | 293 | iov_off = 0; |
294 | sg_off = 0; /* Dear gcc, sg->page will be null from kzalloc. */ | 294 | sg_off = 0; /* Dear gcc, sg->page will be null from kzalloc. */ |
@@ -299,7 +299,7 @@ int rds_message_copy_from_user(struct rds_message *rm, struct iovec *first_iov, | |||
299 | GFP_HIGHUSER); | 299 | GFP_HIGHUSER); |
300 | if (ret) | 300 | if (ret) |
301 | goto out; | 301 | goto out; |
302 | rm->data.m_nents++; | 302 | rm->data.op_nents++; |
303 | sg_off = 0; | 303 | sg_off = 0; |
304 | } | 304 | } |
305 | 305 | ||
@@ -354,7 +354,7 @@ int rds_message_inc_copy_to_user(struct rds_incoming *inc, | |||
354 | 354 | ||
355 | iov = first_iov; | 355 | iov = first_iov; |
356 | iov_off = 0; | 356 | iov_off = 0; |
357 | sg = rm->data.m_sg; | 357 | sg = rm->data.op_sg; |
358 | vec_off = 0; | 358 | vec_off = 0; |
359 | copied = 0; | 359 | copied = 0; |
360 | 360 | ||