linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] [PATCH 07/60] um: 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, user-mode-linux-devel, Richard Weinberger, Jeff Dike,
	Al Viro, user-mode-linux-user, Andrew Morton

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

diff --git a/arch/um/kernel/skas/uaccess.c b/arch/um/kernel/skas/uaccess.c
index 9fefd92..cd7df79 100644
--- a/arch/um/kernel/skas/uaccess.c
+++ b/arch/um/kernel/skas/uaccess.c
@@ -69,7 +69,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write,
 		return -1;
 
 	page = pte_page(*pte);
-	addr = (unsigned long) kmap_atomic(page, KM_UML_USERCOPY) +
+	addr = (unsigned long) kmap_atomic(page) +
 		(addr & ~PAGE_MASK);
 
 	current->thread.fault_catcher = &buf;
@@ -82,7 +82,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write,
 
 	current->thread.fault_catcher = NULL;
 
-	kunmap_atomic((void *)addr, KM_UML_USERCOPY);
+	kunmap_atomic((void *)addr);
 
 	return n;
 }
-- 
1.7.7.6


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


^ 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 ` [uml-devel] [PATCH 07/60] um: 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