From: Cong Wang Date: Fri, 25 Nov 2011 15:14:24 +0000 (+0800) Subject: pohmelfs: remove the second argument of k[un]map_atomic() X-Git-Tag: next-20111205~3^2~38 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5255b282abc17b927aa360178836d5b2d9c4cdbf;p=karo-tx-linux.git pohmelfs: remove the second argument of k[un]map_atomic() --- diff --git a/drivers/staging/pohmelfs/inode.c b/drivers/staging/pohmelfs/inode.c index 7a1955583b7d..96a7ddd819cf 100644 --- a/drivers/staging/pohmelfs/inode.c +++ b/drivers/staging/pohmelfs/inode.c @@ -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);