Re: [PATCH v1] mm: soft-offline: check return value in second __get_any_page() call
From: Andrew Morton
Date: Tue Jan 12 2016 - 17:09:45 EST
On Tue, 12 Jan 2016 03:29:35 +0000 Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> wrote:
> > I don't understand what you're asking for. Please be very
> > specific and carefully identify patches by filename or Subject:.
>
> OK, so what I really wanted is that (1) applying this patch just before
> http://ozlabs.org/~akpm/mmots/broken-out/mm-hwpoison-adjust-for-new-thp-refcounting.patch
> and (2) removing the following chunk from the mm-hwpoison-adjust-for-new-thp-refcounting.patch:
>
> @@ -1575,7 +1540,7 @@ static int get_any_page(struct page *pag
> * Did it turn free?
> */
> ret = __get_any_page(page, pfn, 0);
> - if (!PageLRU(page)) {
> + if (ret == 1 && !PageLRU(page)) {
> /* Drop page reference which is from __get_any_page() */
> put_hwpoison_page(page);
> pr_info("soft_offline: %#lx: unknown non LRU page type %lx\n",
Not a problem, thanks.