crypto: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
This commit is contained in:
parent
8fd75e1216
commit
f0dfc0b0b7
7 changed files with 23 additions and 45 deletions
|
@ -46,7 +46,7 @@ static int hash_walk_next(struct crypto_hash_walk *walk)
|
|||
unsigned int nbytes = min(walk->entrylen,
|
||||
((unsigned int)(PAGE_SIZE)) - offset);
|
||||
|
||||
walk->data = crypto_kmap(walk->pg, 0);
|
||||
walk->data = kmap_atomic(walk->pg);
|
||||
walk->data += offset;
|
||||
|
||||
if (offset & alignmask) {
|
||||
|
@ -93,7 +93,7 @@ int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err)
|
|||
return nbytes;
|
||||
}
|
||||
|
||||
crypto_kunmap(walk->data, 0);
|
||||
kunmap_atomic(walk->data);
|
||||
crypto_yield(walk->flags);
|
||||
|
||||
if (err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue