virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 26/60] vhost: remove the second argument of k[un]map_atomic()
       [not found] <1328852421-19678-1-git-send-email-amwang@redhat.com>
@ 2012-02-10  5:39 ` Cong Wang
  0 siblings, 0 replies; only message in thread
From: Cong Wang @ 2012-02-10  5:39 UTC (permalink / raw)
  To: linux-kernel
  Cc: Cong Wang, kvm, Michael S. Tsirkin, netdev, virtualization,
	Andrew Morton

Signed-off-by: Cong Wang <amwang@redhat.com>
---
 drivers/vhost/vhost.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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;
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-10  5:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1328852421-19678-1-git-send-email-amwang@redhat.com>
2012-02-10  5:39 ` [PATCH 26/60] vhost: remove the second argument of k[un]map_atomic() Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).