summaryrefslogtreecommitdiffstats
path: root/crypto/async_tx
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2011-11-25 23:14:17 +0800
committerCong Wang <xiyou.wangcong@gmail.com>2012-03-20 21:48:16 +0800
commitf0dfc0b0b7f3d961da8a98bcfccc8be9107a848b (patch)
tree41cd58ad3ed1a96381984ba8047d9887b951f1cb /crypto/async_tx
parent8fd75e1216e0ba601a746177e6c102d5593b572f (diff)
downloadop-kernel-dev-f0dfc0b0b7f3d961da8a98bcfccc8be9107a848b.zip
op-kernel-dev-f0dfc0b0b7f3d961da8a98bcfccc8be9107a848b.tar.gz
crypto: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'crypto/async_tx')
-rw-r--r--crypto/async_tx/async_memcpy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/async_tx/async_memcpy.c b/crypto/async_tx/async_memcpy.c
index 0d5a90c..361b5e8 100644
--- a/crypto/async_tx/async_memcpy.c
+++ b/crypto/async_tx/async_memcpy.c
@@ -79,13 +79,13 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset,
/* wait for any prerequisite operations */
async_tx_quiesce(&submit->depend_tx);
- dest_buf = kmap_atomic(dest, KM_USER0) + dest_offset;
- src_buf = kmap_atomic(src, KM_USER1) + src_offset;
+ dest_buf = kmap_atomic(dest) + dest_offset;
+ src_buf = kmap_atomic(src) + src_offset;
memcpy(dest_buf, src_buf, len);
- kunmap_atomic(src_buf, KM_USER1);
- kunmap_atomic(dest_buf, KM_USER0);
+ kunmap_atomic(src_buf);
+ kunmap_atomic(dest_buf);
async_tx_sync_epilog(submit);
}
OpenPOWER on IntegriCloud