diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-01-26 16:34:51 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-01-26 16:34:51 +0000 |
commit | a9973b2af4b45925172bbd4086961791685e5793 (patch) | |
tree | 54f9dd67206fddee1daee340f137b19620002a19 /xen/common/xenoprof.c | |
parent | 9ac9944d74b63e96bdcf264c466670a1fc1bf28c (diff) | |
download | xen-a9973b2af4b45925172bbd4086961791685e5793.tar.gz xen-a9973b2af4b45925172bbd4086961791685e5793.tar.bz2 xen-a9973b2af4b45925172bbd4086961791685e5793.zip |
xenoprof: Fix code indentation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/xenoprof.c')
-rw-r--r-- | xen/common/xenoprof.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/xen/common/xenoprof.c b/xen/common/xenoprof.c index 0d508c20c8..4e71454a5a 100644 --- a/xen/common/xenoprof.c +++ b/xen/common/xenoprof.c @@ -136,23 +136,23 @@ share_xenoprof_page_with_guest(struct domain *d, unsigned long mfn, int npages) { int i; - /* Check if previous page owner has released the page. */ - for ( i = 0; i < npages; i++ ) - { - struct page_info *page = mfn_to_page(mfn + i); - if ( (page->count_info & (PGC_allocated|PGC_count_mask)) != 0 ) - { - gdprintk(XENLOG_INFO, "mfn 0x%lx page->count_info 0x%lx\n", - mfn + i, (unsigned long)page->count_info); - return -EBUSY; - } - page_set_owner(page, NULL); - } - - for ( i = 0; i < npages; i++ ) - share_xen_page_with_guest(mfn_to_page(mfn + i), d, XENSHARE_writable); - - return 0; + /* Check if previous page owner has released the page. */ + for ( i = 0; i < npages; i++ ) + { + struct page_info *page = mfn_to_page(mfn + i); + if ( (page->count_info & (PGC_allocated|PGC_count_mask)) != 0 ) + { + gdprintk(XENLOG_INFO, "mfn 0x%lx page->count_info 0x%lx\n", + mfn + i, (unsigned long)page->count_info); + return -EBUSY; + } + page_set_owner(page, NULL); + } + + for ( i = 0; i < npages; i++ ) + share_xen_page_with_guest(mfn_to_page(mfn + i), d, XENSHARE_writable); + + return 0; } static void |