diff options
| author | Ruslan Pisarev <ruslan@rpisarev.org.ua> | 2011-07-26 07:15:59 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-07-26 13:31:58 -0400 |
| commit | e882dc9c8e10db52dd509fbd67240ce0cc09c201 (patch) | |
| tree | c847befe41124d81ee453622f6a5cc5a7c61a451 | |
| parent | 8ded371f81fba8b38a049f8c5f30ce6438fc7b75 (diff) | |
Xen: fix whitespaces,tabs coding style issue in drivers/xen/balloon.c
This is a patch to the balloon.c file that fixed up
whitespaces, tabs errors found by the checkpatch.pl tools.
Signed-off-by: Ruslan Pisarev <ruslan@rpisarev.org.ua>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
| -rw-r--r-- | drivers/xen/balloon.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c index f54290baa3db..61c0ee7aa7dd 100644 --- a/drivers/xen/balloon.c +++ b/drivers/xen/balloon.c | |||
| @@ -84,8 +84,8 @@ static unsigned long frame_list[PAGE_SIZE / sizeof(unsigned long)]; | |||
| 84 | #define inc_totalhigh_pages() (totalhigh_pages++) | 84 | #define inc_totalhigh_pages() (totalhigh_pages++) |
| 85 | #define dec_totalhigh_pages() (totalhigh_pages--) | 85 | #define dec_totalhigh_pages() (totalhigh_pages--) |
| 86 | #else | 86 | #else |
| 87 | #define inc_totalhigh_pages() do {} while(0) | 87 | #define inc_totalhigh_pages() do {} while (0) |
| 88 | #define dec_totalhigh_pages() do {} while(0) | 88 | #define dec_totalhigh_pages() do {} while (0) |
| 89 | #endif | 89 | #endif |
| 90 | 90 | ||
| 91 | /* List of ballooned pages, threaded through the mem_map array. */ | 91 | /* List of ballooned pages, threaded through the mem_map array. */ |
| @@ -145,8 +145,7 @@ static struct page *balloon_retrieve(bool prefer_highmem) | |||
| 145 | if (PageHighMem(page)) { | 145 | if (PageHighMem(page)) { |
| 146 | balloon_stats.balloon_high--; | 146 | balloon_stats.balloon_high--; |
| 147 | inc_totalhigh_pages(); | 147 | inc_totalhigh_pages(); |
| 148 | } | 148 | } else |
| 149 | else | ||
| 150 | balloon_stats.balloon_low--; | 149 | balloon_stats.balloon_low--; |
| 151 | 150 | ||
| 152 | totalram_pages++; | 151 | totalram_pages++; |
| @@ -299,7 +298,7 @@ static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp) | |||
| 299 | (unsigned long)__va(pfn << PAGE_SHIFT), | 298 | (unsigned long)__va(pfn << PAGE_SHIFT), |
| 300 | __pte_ma(0), 0); | 299 | __pte_ma(0), 0); |
| 301 | BUG_ON(ret); | 300 | BUG_ON(ret); |
| 302 | } | 301 | } |
| 303 | 302 | ||
| 304 | } | 303 | } |
| 305 | 304 | ||
| @@ -376,10 +375,10 @@ EXPORT_SYMBOL_GPL(balloon_set_new_target); | |||
| 376 | * @pages: pages returned | 375 | * @pages: pages returned |
| 377 | * @return 0 on success, error otherwise | 376 | * @return 0 on success, error otherwise |
| 378 | */ | 377 | */ |
| 379 | int alloc_xenballooned_pages(int nr_pages, struct page** pages) | 378 | int alloc_xenballooned_pages(int nr_pages, struct page **pages) |
| 380 | { | 379 | { |
| 381 | int pgno = 0; | 380 | int pgno = 0; |
| 382 | struct page* page; | 381 | struct page *page; |
| 383 | mutex_lock(&balloon_mutex); | 382 | mutex_lock(&balloon_mutex); |
| 384 | while (pgno < nr_pages) { | 383 | while (pgno < nr_pages) { |
| 385 | page = balloon_retrieve(true); | 384 | page = balloon_retrieve(true); |
| @@ -409,7 +408,7 @@ EXPORT_SYMBOL(alloc_xenballooned_pages); | |||
| 409 | * @nr_pages: Number of pages | 408 | * @nr_pages: Number of pages |
| 410 | * @pages: pages to return | 409 | * @pages: pages to return |
| 411 | */ | 410 | */ |
| 412 | void free_xenballooned_pages(int nr_pages, struct page** pages) | 411 | void free_xenballooned_pages(int nr_pages, struct page **pages) |
| 413 | { | 412 | { |
| 414 | int i; | 413 | int i; |
| 415 | 414 | ||
