afs: remove the second argument of k[un]map_atomic()
authorCong Wang <amwang@redhat.com>
Fri, 25 Nov 2011 15:14:26 +0000 (23:14 +0800)
committerCong Wang <xiyou.wangcong@gmail.com>
Tue, 20 Mar 2012 13:48:22 +0000 (21:48 +0800)
Signed-off-by: Cong Wang <amwang@redhat.com>
fs/afs/fsclient.c
fs/afs/mntpt.c

index 2f213d109c21c143d6a7a49fb54f131884e7e8b9..b960ff05ea0bf96dae8466de76da562b9161073a 100644 (file)
@@ -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;
@@ -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]");
index 8f4ce2658b7d607501c9bc77c6ac5e15a4097c55..298cf8919ec79b547db2a80b80a87697c705442f 100644 (file)
@@ -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;
        }