[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xenpaging: whitespace fixes after addition of __get_paged_frame



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1288805963 0
# Node ID 0aff3b0e5e8420ed9c0431bc1405d090dd66a1f1
# Parent  a5ee42d0cf2e477da120783c5dd8148cb69ca595
xenpaging: whitespace fixes after addition of __get_paged_frame

Cleanup whitespace which was introduced in patch that added
__get_paged_frame.
Convert tabs to spaces to follow the coding style in this file.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---
 xen/common/grant_table.c |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff -r a5ee42d0cf2e -r 0aff3b0e5e84 xen/common/grant_table.c
--- a/xen/common/grant_table.c  Wed Nov 03 17:23:42 2010 +0000
+++ b/xen/common/grant_table.c  Wed Nov 03 17:39:23 2010 +0000
@@ -147,13 +147,13 @@ static int __get_paged_frame(unsigned lo
     struct p2m_domain *p2m;
     p2m_type_t p2mt;
     mfn_t mfn;
-    
+
     p2m = p2m_get_hostp2m(rd);
     if ( readonly )
         mfn = gfn_to_mfn(p2m, gfn, &p2mt);
     else
         mfn = gfn_to_mfn_unshare(p2m, gfn, &p2mt, 1);
-    
+
     if ( p2m_is_valid(p2mt) ) {
         *frame = mfn_x(mfn);
         if ( p2m_is_paged(p2mt) )
@@ -167,7 +167,7 @@ static int __get_paged_frame(unsigned lo
 #else
     *frame = readonly ? gmfn_to_mfn(rd, gfn) : gfn_to_mfn_private(rd, gfn);
 #endif
-    
+
     return rc;
 }
 
@@ -565,7 +565,7 @@ __gnttab_map_grant_ref(
             gfn = sha1 ? sha1->frame : sha2->full_page.frame;
             rc = __get_paged_frame(gfn, &frame, !!(op->flags & 
GNTMAP_readonly), rd);
             if ( rc != GNTST_okay )
-                goto unlock_out;
+                goto unlock_out;
             act->gfn = gfn;
             act->domid = ld->domain_id;
             act->frame = frame;
@@ -1852,7 +1852,7 @@ __acquire_grant_for_copy(
             gfn = sha1->frame;
             rc = __get_paged_frame(gfn, &grant_frame, readonly, rd);
             if ( rc != GNTST_okay )
-               goto unlock_out;
+                goto unlock_out;
             act->gfn = gfn;
             is_sub_page = 0;
             trans_page_off = 0;
@@ -1864,7 +1864,7 @@ __acquire_grant_for_copy(
             gfn = sha2->full_page.frame;
             rc = __get_paged_frame(gfn, &grant_frame, readonly, rd);
             if ( rc != GNTST_okay )
-                   goto unlock_out;
+                goto unlock_out;
             act->gfn = gfn;
             is_sub_page = 0;
             trans_page_off = 0;
@@ -1876,7 +1876,7 @@ __acquire_grant_for_copy(
             gfn = sha2->sub_page.frame;
             rc = __get_paged_frame(gfn, &grant_frame, readonly, rd);
             if ( rc != GNTST_okay )
-                   goto unlock_out;
+                goto unlock_out;
             act->gfn = gfn;
             is_sub_page = 1;
             trans_page_off = sha2->sub_page.page_off;
@@ -1973,9 +1973,9 @@ __gnttab_copy(
     else
     {
 #ifdef CONFIG_X86
-       rc = __get_paged_frame(op->source.u.gmfn, &s_frame, 1, sd);
-       if ( rc != GNTST_okay )
-               goto error_out;
+        rc = __get_paged_frame(op->source.u.gmfn, &s_frame, 1, sd);
+        if ( rc != GNTST_okay )
+            goto error_out;
 #else
         s_frame = gmfn_to_mfn(sd, op->source.u.gmfn);        
 #endif
@@ -2012,9 +2012,9 @@ __gnttab_copy(
     else
     {
 #ifdef CONFIG_X86
-       rc = __get_paged_frame(op->dest.u.gmfn, &d_frame, 0, dd);
-       if ( rc != GNTST_okay )
-               goto error_out;
+        rc = __get_paged_frame(op->dest.u.gmfn, &d_frame, 0, dd);
+        if ( rc != GNTST_okay )
+            goto error_out;
 #else
         d_frame = gmfn_to_mfn(dd, op->dest.u.gmfn);
 #endif

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.