Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151525
b: refs/heads/master
c: b3c466c
h: refs/heads/master
i:
  151523: fff6ece
v: v3
  • Loading branch information
Mel Gorman authored and Linus Torvalds committed Jun 17, 2009
1 parent 1d675fa commit 9b61f57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 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: d239171e4f6efd58d7e423853056b1b6a74f1446
refs/heads/master: b3c466ce512923298ae8c0121d3e9f397a3f1210
6 changes: 0 additions & 6 deletions trunk/include/linux/gfp.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ __alloc_pages(gfp_t gfp_mask, unsigned int order,
static inline struct page *alloc_pages_node(int nid, gfp_t gfp_mask,
unsigned int order)
{
if (unlikely(order >= MAX_ORDER))
return NULL;

/* Unknown node is current node */
if (nid < 0)
nid = numa_node_id();
Expand All @@ -201,9 +198,6 @@ extern struct page *alloc_pages_current(gfp_t gfp_mask, unsigned order);
static inline struct page *
alloc_pages(gfp_t gfp_mask, unsigned int order)
{
if (unlikely(order >= MAX_ORDER))
return NULL;

return alloc_pages_current(gfp_mask, order);
}
extern struct page *alloc_page_vma(gfp_t gfp_mask,
Expand Down
3 changes: 3 additions & 0 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,9 @@ get_page_from_freelist(gfp_t gfp_mask, nodemask_t *nodemask, unsigned int order,

classzone_idx = zone_idx(preferred_zone);

if (WARN_ON_ONCE(order >= MAX_ORDER))
return NULL;

zonelist_scan:
/*
* Scan zonelist, looking for a zone with enough free.
Expand Down

0 comments on commit 9b61f57

Please sign in to comment.