Commit da4aa36d authored by Cong Wang's avatar Cong Wang Committed by Cong Wang

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

Signed-off-by: default avatarCong Wang <amwang@redhat.com>
parent 7ac687d9
...@@ -365,10 +365,10 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call, ...@@ -365,10 +365,10 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call,
_debug("extract data"); _debug("extract data");
if (call->count > 0) { if (call->count > 0) {
page = call->reply3; page = call->reply3;
buffer = kmap_atomic(page, KM_USER0); buffer = kmap_atomic(page);
ret = afs_extract_data(call, skb, last, buffer, ret = afs_extract_data(call, skb, last, buffer,
call->count); call->count);
kunmap_atomic(buffer, KM_USER0); kunmap_atomic(buffer);
switch (ret) { switch (ret) {
case 0: break; case 0: break;
case -EAGAIN: return 0; case -EAGAIN: return 0;
...@@ -411,9 +411,9 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call, ...@@ -411,9 +411,9 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call,
if (call->count < PAGE_SIZE) { if (call->count < PAGE_SIZE) {
_debug("clear"); _debug("clear");
page = call->reply3; page = call->reply3;
buffer = kmap_atomic(page, KM_USER0); buffer = kmap_atomic(page);
memset(buffer + call->count, 0, PAGE_SIZE - call->count); memset(buffer + call->count, 0, PAGE_SIZE - call->count);
kunmap_atomic(buffer, KM_USER0); kunmap_atomic(buffer);
} }
_leave(" = 0 [done]"); _leave(" = 0 [done]");
......
...@@ -200,9 +200,9 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt) ...@@ -200,9 +200,9 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt)
if (PageError(page)) if (PageError(page))
goto error; goto error;
buf = kmap_atomic(page, KM_USER0); buf = kmap_atomic(page);
memcpy(devname, buf, size); memcpy(devname, buf, size);
kunmap_atomic(buf, KM_USER0); kunmap_atomic(buf);
page_cache_release(page); page_cache_release(page);
page = NULL; page = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment