summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/file.c
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2011-11-25 23:14:36 +0800
committerCong Wang <xiyou.wangcong@gmail.com>2012-03-20 21:48:26 +0800
commita1c7c13783c9d2d1d67f53c49dc4eaf34811a290 (patch)
tree6699f175d1b5ec915ed82f243badf57f543ed01d /fs/ubifs/file.c
parent53b55e55893fbce8d78caeb22e17a28d909a2132 (diff)
downloadlinux-stable-a1c7c13783c9d2d1d67f53c49dc4eaf34811a290.tar.gz
linux-stable-a1c7c13783c9d2d1d67f53c49dc4eaf34811a290.tar.bz2
linux-stable-a1c7c13783c9d2d1d67f53c49dc4eaf34811a290.zip
ubifs: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'fs/ubifs/file.c')
-rw-r--r--fs/ubifs/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c
index f9c234bf33d3..5c8f6dc1d28b 100644
--- a/fs/ubifs/file.c
+++ b/fs/ubifs/file.c
@@ -1042,10 +1042,10 @@ static int ubifs_writepage(struct page *page, struct writeback_control *wbc)
* the page size, the remaining memory is zeroed when mapped, and
* writes to that region are not written out to the file."
*/
- kaddr = kmap_atomic(page, KM_USER0);
+ kaddr = kmap_atomic(page);
memset(kaddr + len, 0, PAGE_CACHE_SIZE - len);
flush_dcache_page(page);
- kunmap_atomic(kaddr, KM_USER0);
+ kunmap_atomic(kaddr);
if (i_size > synced_i_size) {
err = inode->i_sb->s_op->write_inode(inode, NULL);