mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
sunrpc: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
This commit is contained in:
parent
6114eab535
commit
b854178601
4 changed files with 18 additions and 18 deletions
|
@ -114,7 +114,7 @@ ssize_t xdr_partial_copy_from_skb(struct xdr_buf *xdr, unsigned int base, struct
|
|||
}
|
||||
|
||||
len = PAGE_CACHE_SIZE;
|
||||
kaddr = kmap_atomic(*ppage, KM_SKB_SUNRPC_DATA);
|
||||
kaddr = kmap_atomic(*ppage);
|
||||
if (base) {
|
||||
len -= base;
|
||||
if (pglen < len)
|
||||
|
@ -127,7 +127,7 @@ ssize_t xdr_partial_copy_from_skb(struct xdr_buf *xdr, unsigned int base, struct
|
|||
ret = copy_actor(desc, kaddr, len);
|
||||
}
|
||||
flush_dcache_page(*ppage);
|
||||
kunmap_atomic(kaddr, KM_SKB_SUNRPC_DATA);
|
||||
kunmap_atomic(kaddr);
|
||||
copied += ret;
|
||||
if (ret != len || !desc->count)
|
||||
goto out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue