@@ -94,8 +94,8 @@ static unsigned long frame_list[PAGE_SIZE / sizeof(unsigned long)];
9494#define inc_totalhigh_pages () (totalhigh_pages++)
9595#define dec_totalhigh_pages () (totalhigh_pages--)
9696#else
97- #define inc_totalhigh_pages () do {} while(0)
98- #define dec_totalhigh_pages () do {} while(0)
97+ #define inc_totalhigh_pages () do {} while (0)
98+ #define dec_totalhigh_pages () do {} while (0)
9999#endif
100100
101101/* List of ballooned pages, threaded through the mem_map array. */
@@ -155,8 +155,7 @@ static struct page *balloon_retrieve(bool prefer_highmem)
155155 if (PageHighMem (page )) {
156156 balloon_stats .balloon_high -- ;
157157 inc_totalhigh_pages ();
158- }
159- else
158+ } else
160159 balloon_stats .balloon_low -- ;
161160
162161 totalram_pages ++ ;
@@ -423,7 +422,7 @@ static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp)
423422 (unsigned long )__va (pfn << PAGE_SHIFT ),
424423 __pte_ma (0 ), 0 );
425424 BUG_ON (ret );
426- }
425+ }
427426
428427 }
429428
@@ -508,7 +507,7 @@ EXPORT_SYMBOL_GPL(balloon_set_new_target);
508507int alloc_xenballooned_pages (int nr_pages , struct page * * pages , bool highmem )
509508{
510509 int pgno = 0 ;
511- struct page * page ;
510+ struct page * page ;
512511 mutex_lock (& balloon_mutex );
513512 while (pgno < nr_pages ) {
514513 page = balloon_retrieve (highmem );
@@ -541,7 +540,7 @@ EXPORT_SYMBOL(alloc_xenballooned_pages);
541540 * @nr_pages: Number of pages
542541 * @pages: pages to return
543542 */
544- void free_xenballooned_pages (int nr_pages , struct page * * pages )
543+ void free_xenballooned_pages (int nr_pages , struct page * * pages )
545544{
546545 int i ;
547546
0 commit comments