Skip to content

Commit

Permalink
afs: remove the second argument of k[un]map_atomic()
Browse files Browse the repository at this point in the history
Signed-off-by: Cong Wang <amwang@redhat.com>
  • Loading branch information
Cong Wang authored and congwang committed Mar 20, 2012
1 parent 7ac687d commit da4aa36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions fs/afs/fsclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call,
_debug("extract data");
if (call->count > 0) {
page = call->reply3;
buffer = kmap_atomic(page, KM_USER0);
buffer = kmap_atomic(page);
ret = afs_extract_data(call, skb, last, buffer,
call->count);
kunmap_atomic(buffer, KM_USER0);
kunmap_atomic(buffer);
switch (ret) {
case 0: break;
case -EAGAIN: return 0;
Expand Down Expand Up @@ -411,9 +411,9 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call,
if (call->count < PAGE_SIZE) {
_debug("clear");
page = call->reply3;
buffer = kmap_atomic(page, KM_USER0);
buffer = kmap_atomic(page);
memset(buffer + call->count, 0, PAGE_SIZE - call->count);
kunmap_atomic(buffer, KM_USER0);
kunmap_atomic(buffer);
}

_leave(" = 0 [done]");
Expand Down
4 changes: 2 additions & 2 deletions fs/afs/mntpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt)
if (PageError(page))
goto error;

buf = kmap_atomic(page, KM_USER0);
buf = kmap_atomic(page);
memcpy(devname, buf, size);
kunmap_atomic(buf, KM_USER0);
kunmap_atomic(buf);
page_cache_release(page);
page = NULL;
}
Expand Down

0 comments on commit da4aa36

Please sign in to comment.