mm/memory_hotplug.c: remove __online_page_set_limits()
authorSouptick Joarder <jrdr.linux@gmail.com>
Sun, 1 Dec 2019 01:58:20 +0000 (17:58 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 1 Dec 2019 20:59:10 +0000 (12:59 -0800)
__online_page_set_limits() is a dummy function - remove it and all
callers.

Link: http://lkml.kernel.org/r/8e1bc9d3b492f6bde16e95ebc1dee11d6aefabd7.1567889743.git.jrdr.linux@gmail.com
Link: http://lkml.kernel.org/r/854db2cf8145d9635249c95584d9a91fd774a229.1567889743.git.jrdr.linux@gmail.com
Link: http://lkml.kernel.org/r/9afe6c5a18158f3884a6b302ac2c772f3da49ccc.1567889743.git.jrdr.linux@gmail.com
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hv/hv_balloon.c
drivers/xen/balloon.c
include/linux/memory_hotplug.h
mm/memory_hotplug.c

index 65ab170d4a9a7dd50ad372684c538296ff35c701..da6ced15c6c51046cf9511294c27d9f7b4817915 100644 (file)
@@ -680,7 +680,6 @@ static void hv_page_online_one(struct hv_hotadd_state *has, struct page *pg)
                __ClearPageOffline(pg);
 
        /* This frame is currently backed; online the page. */
-       __online_page_set_limits(pg);
        generic_online_page(pg, 0);
 
        lockdep_assert_held(&dm_device.ha_lock);
index 5bae515c8e25c0a4f1c90b42e24b271a5777ef84..4f2e78a5e4dbee31147978a228646b30e6ed8d28 100644 (file)
@@ -374,7 +374,6 @@ static void xen_online_page(struct page *page, unsigned int order)
        mutex_lock(&balloon_mutex);
        for (i = 0; i < size; i++) {
                p = pfn_to_page(start_pfn + i);
-               __online_page_set_limits(p);
                balloon_append(p);
        }
        mutex_unlock(&balloon_mutex);
index 101d97e7e2ac192207bd82ef875c27448462379d..3a08ecdfca116d1cdbbbb383e10e282af7065749 100644 (file)
@@ -106,8 +106,6 @@ extern void generic_online_page(struct page *page, unsigned int order);
 extern int set_online_page_callback(online_page_callback_t callback);
 extern int restore_online_page_callback(online_page_callback_t callback);
 
-extern void __online_page_set_limits(struct page *page);
-
 extern int try_online_node(int nid);
 
 extern int arch_add_memory(int nid, u64 start, u64 size,
index fee3bacdd70009a131fe7bc9f4cbcebce72d3814..55ac23ef11c1cbf1e13f187b5c850d4075128ad5 100644 (file)
@@ -598,11 +598,6 @@ int restore_online_page_callback(online_page_callback_t callback)
 }
 EXPORT_SYMBOL_GPL(restore_online_page_callback);
 
-void __online_page_set_limits(struct page *page)
-{
-}
-EXPORT_SYMBOL_GPL(__online_page_set_limits);
-
 void generic_online_page(struct page *page, unsigned int order)
 {
        kernel_map_pages(page, 1 << order, 1);