infiniband: remove the second argument of k[un]map_atomic()

Acked-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Cong Wang <amwang@redhat.com>
This commit is contained in:
Cong Wang 2011-11-25 23:14:20 +08:00 committed by Cong Wang
parent 45b408d2ef
commit 2a156d094d

View File

@ -73,11 +73,11 @@ static int iser_start_rdma_unaligned_sg(struct iscsi_iser_task *iser_task,
p = mem; p = mem;
for_each_sg(sgl, sg, data->size, i) { for_each_sg(sgl, sg, data->size, i) {
from = kmap_atomic(sg_page(sg), KM_USER0); from = kmap_atomic(sg_page(sg));
memcpy(p, memcpy(p,
from + sg->offset, from + sg->offset,
sg->length); sg->length);
kunmap_atomic(from, KM_USER0); kunmap_atomic(from);
p += sg->length; p += sg->length;
} }
} }
@ -133,11 +133,11 @@ void iser_finalize_rdma_unaligned_sg(struct iscsi_iser_task *iser_task,
p = mem; p = mem;
for_each_sg(sgl, sg, sg_size, i) { for_each_sg(sgl, sg, sg_size, i) {
to = kmap_atomic(sg_page(sg), KM_SOFTIRQ0); to = kmap_atomic(sg_page(sg));
memcpy(to + sg->offset, memcpy(to + sg->offset,
p, p,
sg->length); sg->length);
kunmap_atomic(to, KM_SOFTIRQ0); kunmap_atomic(to);
p += sg->length; p += sg->length;
} }
} }