]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] rename page_to_nodenum()
authorAndrew Morton <akpm@osdl.org>
Mon, 12 Apr 2004 07:54:44 +0000 (00:54 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 12 Apr 2004 07:54:44 +0000 (00:54 -0700)
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.

include/linux/mm.h

index 796f498658d6caa9c3575c4a3e9c3bd3437a3956..d453a0ab62a7255e38c28ed3494cb3d68193be4c 100644 (file)
@@ -351,7 +351,7 @@ static inline unsigned long page_zonenum(struct page *page)
 {
        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));
 }