Re: [PATCH] memory-hotplug: remove redundant call of page_to_pfn

2014-11-17 Thread David Rientjes
On Tue, 11 Nov 2014, Zhang Zhen wrote: > The start_pfn can be obtained directly by > phys_index << PFN_SECTION_SHIFT. > > Signed-off-by: Zhang Zhen Acked-by: David Rientjes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ker

Re: [PATCH] memory-hotplug: remove redundant call of page_to_pfn

2014-11-11 Thread Zhang Zhen
On 2014/11/12 11:16, Yasuaki Ishimatsu wrote: > (2014/11/11 18:13), Zhang Zhen wrote: >> The start_pfn can be obtained directly by >> phys_index << PFN_SECTION_SHIFT. >> >> Signed-off-by: Zhang Zhen >> --- > > The patch looks good to me but I want you to write a purpose of the patch > to the desc

Re: [PATCH] memory-hotplug: remove redundant call of page_to_pfn

2014-11-11 Thread Yasuaki Ishimatsu
(2014/11/11 18:13), Zhang Zhen wrote: The start_pfn can be obtained directly by phys_index << PFN_SECTION_SHIFT. Signed-off-by: Zhang Zhen --- The patch looks good to me but I want you to write a purpose of the patch to the description for other reviewer. Thanks, Yasuaki Ishimatsu driver

[PATCH] memory-hotplug: remove redundant call of page_to_pfn

2014-11-11 Thread Zhang Zhen
The start_pfn can be obtained directly by phys_index << PFN_SECTION_SHIFT. Signed-off-by: Zhang Zhen --- drivers/base/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/memory.c b/drivers/base/memory.c index 7c5d871..85be040 100644 --- a/drivers/base/me