summaryrefslogtreecommitdiffstats
path: root/drivers/vhost/vhost.c
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2011-11-25 16:14:26 +0100
committerCong Wang <xiyou.wangcong@gmail.com>2012-03-20 14:48:21 +0100
commitc6daa7ffa834c850b3dbb38af6980415caef680d (patch)
treed41226b04d4a06ac613fdd7c4593ec196b803752 /drivers/vhost/vhost.c
parenttarget: remove the second argument of k[un]map_atomic() (diff)
downloadlinux-c6daa7ffa834c850b3dbb38af6980415caef680d.tar.xz
linux-c6daa7ffa834c850b3dbb38af6980415caef680d.zip
vhost: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/vhost/vhost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index c14c42b95ab8..bdb2d6436b2b 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -937,9 +937,9 @@ static int set_bit_to_user(int nr, void __user *addr)
if (r < 0)
return r;
BUG_ON(r != 1);
- base = kmap_atomic(page, KM_USER0);
+ base = kmap_atomic(page);
set_bit(bit, base);
- kunmap_atomic(base, KM_USER0);
+ kunmap_atomic(base);
set_page_dirty_lock(page);
put_page(page);
return 0;