]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
pohmelfs: remove the second argument of k[un]map_atomic()
authorCong Wang <amwang@redhat.com>
Fri, 25 Nov 2011 15:14:24 +0000 (23:14 +0800)
committerCong Wang <amwang@redhat.com>
Fri, 2 Dec 2011 03:12:53 +0000 (11:12 +0800)
drivers/staging/pohmelfs/inode.c

index 7a1955583b7d8ce1c29837f3f4cec5fe284c6b35..96a7ddd819cf10c3693d8445a2f51c2a2d0d34ae 100644 (file)
@@ -606,11 +606,11 @@ static int pohmelfs_write_begin(struct file *file, struct address_space *mapping
                }
 
                if (len != PAGE_CACHE_SIZE) {
-                       void *kaddr = kmap_atomic(page, KM_USER0);
+                       void *kaddr = kmap_atomic(page);
 
                        memset(kaddr + start, 0, PAGE_CACHE_SIZE - start);
                        flush_dcache_page(page);
-                       kunmap_atomic(kaddr, KM_USER0);
+                       kunmap_atomic(kaddr);
                }
                SetPageUptodate(page);
        }
@@ -636,11 +636,11 @@ static int pohmelfs_write_end(struct file *file, struct address_space *mapping,
 
        if (copied != len) {
                unsigned from = pos & (PAGE_CACHE_SIZE - 1);
-               void *kaddr = kmap_atomic(page, KM_USER0);
+               void *kaddr = kmap_atomic(page);
 
                memset(kaddr + from + copied, 0, len - copied);
                flush_dcache_page(page);
-               kunmap_atomic(kaddr, KM_USER0);
+               kunmap_atomic(kaddr);
        }
 
        SetPageUptodate(page);