diff options
author | Xishi Qiu | 2013-11-13 00:07:21 +0100 |
---|---|---|
committer | Linus Torvalds | 2013-11-13 04:09:04 +0100 |
commit | 9c2606b77d6bffb422928bca66c8dc84d85089be (patch) | |
tree | ce40c1b6ac3b167b7d803d142ec1ee73bfd78a11 | |
parent | mm/memory_hotplug.c: rename the function is_memblock_offlined_cb() (diff) | |
download | kernel-qcow2-linux-9c2606b77d6bffb422928bca66c8dc84d85089be.tar.gz kernel-qcow2-linux-9c2606b77d6bffb422928bca66c8dc84d85089be.tar.xz kernel-qcow2-linux-9c2606b77d6bffb422928bca66c8dc84d85089be.zip |
mm/memory_hotplug.c: use pfn_to_nid() instead of page_to_nid(pfn_to_page())
Use "pfn_to_nid(pfn)" instead of "page_to_nid(pfn_to_page(pfn))".
Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Acked-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/memory_hotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 133a4e132632..5118028468eb 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -934,7 +934,7 @@ int __ref online_pages(unsigned long pfn, unsigned long nr_pages, int online_typ arg.nr_pages = nr_pages; node_states_check_changes_online(nr_pages, zone, &arg); - nid = page_to_nid(pfn_to_page(pfn)); + nid = pfn_to_nid(pfn); ret = memory_notify(MEM_GOING_ONLINE, &arg); ret = notifier_to_errno(ret); |