Commit 66fb1123 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] rename page_to_nodenum()

From: "Martin J. Bligh" <mbligh@aracnet.com>

I'd prefer we renamed this to page_to_nid() before anyone starts using it. 
This fits with the naming convention of everything else (pfn_to_nid, etc). 
Nobody uses it right now - I grepped the whole tree.
parent fbf7adfa
...@@ -351,7 +351,7 @@ static inline unsigned long page_zonenum(struct page *page) ...@@ -351,7 +351,7 @@ static inline unsigned long page_zonenum(struct page *page)
{ {
return (page->flags >> NODEZONE_SHIFT) & (~(~0UL << ZONES_SHIFT)); return (page->flags >> NODEZONE_SHIFT) & (~(~0UL << ZONES_SHIFT));
} }
static inline unsigned long page_nodenum(struct page *page) static inline unsigned long page_to_nid(struct page *page)
{ {
return (page->flags >> (NODEZONE_SHIFT + ZONES_SHIFT)); return (page->flags >> (NODEZONE_SHIFT + ZONES_SHIFT));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment