Displaying 3 results from an estimated 3 matches for "gfp_balloon".
2010 Mar 11
1
[PATCH 1/2] xen: balloon: Fix checkpatch issues
...ats.balloon_high--;
inc_totalhigh_pages();
- }
- else
+ } else
balloon_stats.balloon_low--;
totalram_pages++;
@@ -274,7 +273,8 @@ static int decrease_reservation(unsigned long nr_pages)
nr_pages = ARRAY_SIZE(frame_list);
for (i = 0; i < nr_pages; i++) {
- if ((page = alloc_page(GFP_BALLOON)) == NULL) {
+ page = alloc_page(GFP_BALLOON);
+ if (!page) {
nr_pages = i;
need_sleep = 1;
break;
@@ -290,7 +290,7 @@ static int decrease_reservation(unsigned long nr_pages)
(unsigned long)__va(pfn << PAGE_SHIFT),
__pte_ma(0), 0);
BUG_ON(ret);
- }
+...
2010 Mar 11
1
[PATCH 1/2] xen: balloon: Fix checkpatch issues
...ats.balloon_high--;
inc_totalhigh_pages();
- }
- else
+ } else
balloon_stats.balloon_low--;
totalram_pages++;
@@ -274,7 +273,8 @@ static int decrease_reservation(unsigned long nr_pages)
nr_pages = ARRAY_SIZE(frame_list);
for (i = 0; i < nr_pages; i++) {
- if ((page = alloc_page(GFP_BALLOON)) == NULL) {
+ page = alloc_page(GFP_BALLOON);
+ if (!page) {
nr_pages = i;
need_sleep = 1;
break;
@@ -290,7 +290,7 @@ static int decrease_reservation(unsigned long nr_pages)
(unsigned long)__va(pfn << PAGE_SHIFT),
__pte_ma(0), 0);
BUG_ON(ret);
- }
+...
2010 Mar 11
1
[PATCH 1/2] xen: balloon: Fix checkpatch issues
...ats.balloon_high--;
inc_totalhigh_pages();
- }
- else
+ } else
balloon_stats.balloon_low--;
totalram_pages++;
@@ -274,7 +273,8 @@ static int decrease_reservation(unsigned long nr_pages)
nr_pages = ARRAY_SIZE(frame_list);
for (i = 0; i < nr_pages; i++) {
- if ((page = alloc_page(GFP_BALLOON)) == NULL) {
+ page = alloc_page(GFP_BALLOON);
+ if (!page) {
nr_pages = i;
need_sleep = 1;
break;
@@ -290,7 +290,7 @@ static int decrease_reservation(unsigned long nr_pages)
(unsigned long)__va(pfn << PAGE_SHIFT),
__pte_ma(0), 0);
BUG_ON(ret);
- }
+...