Patchwork [26/60] vhost: remove the second argument of k[un]map_atomic()

login
register
mail settings
Submitter Amerigo Wang
Date Feb. 10, 2012, 5:39 a.m.
Message ID <1328852421-19678-27-git-send-email-amwang@redhat.com>
Download mbox | patch
Permalink /patch/140497/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Amerigo Wang - Feb. 10, 2012, 5:39 a.m.
Signed-off-by: Cong Wang <amwang@redhat.com>
---
 drivers/vhost/vhost.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index c14c42b..bdb2d64 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;