Skip to content

Commit

Permalink
RDS: Do not mask address when pinning pages
Browse files Browse the repository at this point in the history
This does not appear to be necessary.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
  • Loading branch information
Andy Grover committed Sep 9, 2010
1 parent 40589e7 commit d22faec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/rds/rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static int __rds_rdma_map(struct rds_sock *rs, struct rds_get_mr_args *args,
* r/o or r/w. We need to assume r/w, or we'll do a lot of RDMA to
* the zero page.
*/
ret = rds_pin_pages(args->vec.addr & PAGE_MASK, nr_pages, pages, 1);
ret = rds_pin_pages(args->vec.addr, nr_pages, pages, 1);
if (ret < 0)
goto out;

Expand Down Expand Up @@ -595,7 +595,7 @@ static int rds_rdma_prepare(struct rds_message *rm,
/* If it's a WRITE operation, we want to pin the pages for reading.
* If it's a READ operation, we need to pin the pages for writing.
*/
ret = rds_pin_pages(vec.addr & PAGE_MASK, nr, pages, !op->r_write);
ret = rds_pin_pages(vec.addr, nr, pages, !op->r_write);
if (ret < 0)
goto out;

Expand Down

0 comments on commit d22faec

Please sign in to comment.