Message ID | 20201119105716.5962-3-osalvador@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | HWPoison: Refactor get page interface | expand |
On Thu, Nov 19, 2020 at 11:57:11AM +0100, Oscar Salvador wrote: > pfn parameter is no longer needed, drop it. > > Signed-off-by: Oscar Salvador <osalvador@suse.de> Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
On 11/19/20 11:57 AM, Oscar Salvador wrote: > pfn parameter is no longer needed, drop it. Could have been also part of previous patch. > Signed-off-by: Oscar Salvador <osalvador@suse.de> Acked-by: Vlastimil Babka <Vbabka@suse.cz> > --- > mm/memory-failure.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/mm/memory-failure.c b/mm/memory-failure.c > index 0d2323ba4b8e..04237fc04a00 100644 > --- a/mm/memory-failure.c > +++ b/mm/memory-failure.c > @@ -1712,7 +1712,7 @@ EXPORT_SYMBOL(unpoison_memory); > * We only incremented refcount in case the page was already in-use and it is > * a known type we can handle. > */ > -static int get_any_page(struct page *p, unsigned long pfn, int flags) > +static int get_any_page(struct page *p, int flags) > { > int ret = 0, pass = 0; > > @@ -1926,7 +1926,7 @@ int soft_offline_page(unsigned long pfn, int flags) > > retry: > get_online_mems(); > - ret = get_any_page(page, pfn, flags); > + ret = get_any_page(page, flags); > put_online_mems(); > > if (ret > 0) { >
diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 0d2323ba4b8e..04237fc04a00 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1712,7 +1712,7 @@ EXPORT_SYMBOL(unpoison_memory); * We only incremented refcount in case the page was already in-use and it is * a known type we can handle. */ -static int get_any_page(struct page *p, unsigned long pfn, int flags) +static int get_any_page(struct page *p, int flags) { int ret = 0, pass = 0; @@ -1926,7 +1926,7 @@ int soft_offline_page(unsigned long pfn, int flags) retry: get_online_mems(); - ret = get_any_page(page, pfn, flags); + ret = get_any_page(page, flags); put_online_mems(); if (ret > 0) {
pfn parameter is no longer needed, drop it. Signed-off-by: Oscar Salvador <osalvador@suse.de> --- mm/memory-failure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)