summaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2011-11-25 23:14:39 +0800
committerCong Wang <xiyou.wangcong@gmail.com>2012-03-20 21:48:27 +0800
commit9b04c5fec43c0da610a2c37f70c5b013101a6ad7 (patch)
treef04767281b7067fba91cf0d37440bf454c492e38 /mm/shmem.c
parentc3eede8e0a1292d95c051cf947738687b9c42322 (diff)
downloadblackbird-op-linux-9b04c5fec43c0da610a2c37f70c5b013101a6ad7.tar.gz
blackbird-op-linux-9b04c5fec43c0da610a2c37f70c5b013101a6ad7.zip
mm: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 269d049294ab..b7e195571862 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -1656,9 +1656,9 @@ static int shmem_symlink(struct inode *dir, struct dentry *dentry, const char *s
}
inode->i_mapping->a_ops = &shmem_aops;
inode->i_op = &shmem_symlink_inode_operations;
- kaddr = kmap_atomic(page, KM_USER0);
+ kaddr = kmap_atomic(page);
memcpy(kaddr, symname, len);
- kunmap_atomic(kaddr, KM_USER0);
+ kunmap_atomic(kaddr);
set_page_dirty(page);
unlock_page(page);
page_cache_release(page);
OpenPOWER on IntegriCloud