Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14370
b: refs/heads/master
c: 6b1de91
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Nov 17, 2005
1 parent 85101d9 commit c2d0128
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: bb833986674ce1fc1b237b3d81459511ad2df393
refs/heads/master: 6b1de9161e973bac8c4675db608fe4f38d2689bd
7 changes: 4 additions & 3 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,21 +845,22 @@ __alloc_pages(gfp_t gfp_mask, unsigned int order,

might_sleep_if(wait);

restart:
z = zonelist->zones; /* the list of zones suitable for gfp_mask */

if (unlikely(*z == NULL)) {
/* Should this ever happen?? */
return NULL;
}
restart:

page = get_page_from_freelist(gfp_mask|__GFP_HARDWALL, order,
zonelist, ALLOC_CPUSET);
if (page)
goto got_pg;

do
do {
wakeup_kswapd(*z, order);
while (*(++z));
} while (*(++z));

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

0 comments on commit c2d0128

Please sign in to comment.