Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17953
b: refs/heads/master
c: 819a692
h: refs/heads/master
i:
  17951: 79bf74f
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jan 12, 2006
1 parent 58fc949 commit 34a46ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1584b89c921acefe88881f08d836d80f00600a84
refs/heads/master: 819a692804a8d2d42b7bb033d2650dba47622149
4 changes: 4 additions & 0 deletions trunk/include/linux/gfp.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ static inline struct page *alloc_pages_node(int nid, gfp_t gfp_mask,
if (unlikely(order >= MAX_ORDER))
return NULL;

/* Unknown node is current node */
if (nid < 0)
nid = numa_node_id();

return __alloc_pages(gfp_mask, order,
NODE_DATA(nid)->node_zonelists + gfp_zone(gfp_mask));
}
Expand Down

0 comments on commit 34a46ed

Please sign in to comment.