Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151524
b: refs/heads/master
c: d239171
h: refs/heads/master
v: v3
  • Loading branch information
Mel Gorman authored and Linus Torvalds committed Jun 17, 2009
1 parent fff6ece commit 1d675fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 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: 6c0db4664b49417d80988953e69c323721353227
refs/heads/master: d239171e4f6efd58d7e423853056b1b6a74f1446
12 changes: 2 additions & 10 deletions trunk/include/linux/gfp.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,24 +172,16 @@ static inline void arch_alloc_page(struct page *page, int order) { }
#endif

struct page *
__alloc_pages_internal(gfp_t gfp_mask, unsigned int order,
__alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order,
struct zonelist *zonelist, nodemask_t *nodemask);

static inline struct page *
__alloc_pages(gfp_t gfp_mask, unsigned int order,
struct zonelist *zonelist)
{
return __alloc_pages_internal(gfp_mask, order, zonelist, NULL);
return __alloc_pages_nodemask(gfp_mask, order, zonelist, NULL);
}

static inline struct page *
__alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order,
struct zonelist *zonelist, nodemask_t *nodemask)
{
return __alloc_pages_internal(gfp_mask, order, zonelist, nodemask);
}


static inline struct page *alloc_pages_node(int nid, gfp_t gfp_mask,
unsigned int order)
{
Expand Down
4 changes: 2 additions & 2 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ get_page_from_freelist(gfp_t gfp_mask, nodemask_t *nodemask, unsigned int order,
* This is the 'heart' of the zoned buddy allocator.
*/
struct page *
__alloc_pages_internal(gfp_t gfp_mask, unsigned int order,
__alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order,
struct zonelist *zonelist, nodemask_t *nodemask)
{
const gfp_t wait = gfp_mask & __GFP_WAIT;
Expand Down Expand Up @@ -1667,7 +1667,7 @@ __alloc_pages_internal(gfp_t gfp_mask, unsigned int order,
got_pg:
return page;
}
EXPORT_SYMBOL(__alloc_pages_internal);
EXPORT_SYMBOL(__alloc_pages_nodemask);

/*
* Common helper functions.
Expand Down

0 comments on commit 1d675fa

Please sign in to comment.