Re: [PATCH 0/3] SPARSEMEM: pfn_to_nid implementation

Mike Kravetz
2005-11-17T00:06:46Z

On Wed, Nov 16, 2005 at 10:59:53PM +0000, Andy Whitcroft wrote:
> Following this message are three patches:
>
> kvaddr_to_nid-not-used-in-common-code: removes the unused interface
> kvaddr_to_nid().
>
> pfn_to_pgdat-not-used-in-common-code: removes the unused interface
> pfn_to_pgdat().
>
> sparse-provide-pfn_to_nid: provides pfn_to_nid() for SPARSEMEM.
> Note that this implmentation assumes the pfn has been validated
> prior to use. The only intree user of this call does this.
> We perhaps need to make this part of the signature for this function.
>
> Mike, how does this look to you?

I like the idea of getting rid of unused interfaces as well as getting
the node information from the page structs. It works for me on powerpc.

--
Mike