Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42641
b: refs/heads/master
c: 0798e51
h: refs/heads/master
i:
  42639: aa7ba05
v: v3
  • Loading branch information
Paul Jackson authored and Linus Torvalds committed Dec 7, 2006
1 parent 4ec034e commit e1237f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2ce774096110ccc5c02cbdc05897d005fcd3db8
refs/heads/master: 0798e5193cd70f6c867ec176d7730589f944c627
20 changes: 10 additions & 10 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ static void free_one_page(struct zone *zone, struct page *page, int order)
spin_lock(&zone->lock);
zone->all_unreclaimable = 0;
zone->pages_scanned = 0;
__free_one_page(page, zone ,order);
__free_one_page(page, zone, order);
spin_unlock(&zone->lock);
}

Expand Down Expand Up @@ -926,7 +926,7 @@ int zone_watermark_ok(struct zone *z, int order, unsigned long mark,
}

/*
* get_page_from_freeliest goes through the zonelist trying to allocate
* get_page_from_freelist goes through the zonelist trying to allocate
* a page.
*/
static struct page *
Expand All @@ -948,8 +948,8 @@ get_page_from_freelist(gfp_t gfp_mask, unsigned int order,
zone->zone_pgdat != zonelist->zones[0]->zone_pgdat))
break;
if ((alloc_flags & ALLOC_CPUSET) &&
!cpuset_zone_allowed(zone, gfp_mask))
continue;
!cpuset_zone_allowed(zone, gfp_mask))
continue;

if (!(alloc_flags & ALLOC_NO_WATERMARKS)) {
unsigned long mark;
Expand All @@ -959,17 +959,18 @@ get_page_from_freelist(gfp_t gfp_mask, unsigned int order,
mark = zone->pages_low;
else
mark = zone->pages_high;
if (!zone_watermark_ok(zone , order, mark,
classzone_idx, alloc_flags))
if (!zone_watermark_ok(zone, order, mark,
classzone_idx, alloc_flags)) {
if (!zone_reclaim_mode ||
!zone_reclaim(zone, gfp_mask, order))
continue;
}
}

page = buffered_rmqueue(zonelist, zone, order, gfp_mask);
if (page) {
if (page)
break;
}

} while (*(++z) != NULL);
return page;
}
Expand Down Expand Up @@ -1005,9 +1006,8 @@ __alloc_pages(gfp_t gfp_mask, unsigned int order,
if (page)
goto got_pg;

do {
for (z = zonelist->zones; *z; z++)
wakeup_kswapd(*z, order);
} while (*(++z));

/*
* OK, we're below the kswapd watermark and have kicked background
Expand Down

0 comments on commit e1237f9

Please sign in to comment.