Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7710781imu; Wed, 14 Nov 2018 23:49:17 -0800 (PST) X-Google-Smtp-Source: AJdET5eR1mKx1WdeS575VXzoowCKjfzBM1SzpigLvE/cOjxmQvrFDKdWSEJfLu8f5pP5Ad1O5yGi X-Received: by 2002:a62:302:: with SMTP id 2-v6mr5491576pfd.135.1542268157421; Wed, 14 Nov 2018 23:49:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542268157; cv=none; d=google.com; s=arc-20160816; b=wCwv4a6h8NstxI71pOrSzfUSSryPLuuQ1H5QlP+uAib9vhb0I5LpIkfyxrOUnGbAnj nAbQEfASegTfH+bCs04kmwARlC4+yRYKNi7udN3Jg8nL0IEvnOvtIUfwQ4oeD+tebm1N wkBMzNY8SinXi0X2DF3XbMFduso+3kkS4R9e2Sx9ef1OYQ3JZC5n8b3Auarm259dFJsE uUdKLOcVG1OGFE7HvP08CS9igHpCAqCDOL/u0S8hF5AhyB0HWUYrv+6JZRdTVD8OjxHB +Ltg/x1JSSZPcOjGynCFMETURZdzucCprpig7DpkIK9GoyApBkxLO6xh0Nhz6z7r30J8 SXiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=C1XclBJfpEKNemorEj7a909KPpaiZxcJsrF5Ec3HwmQ=; b=I+iAn0OvOqB+4wQFLLaRXLRwKGhcqE9IOx0WHLaY45AY2oug08+g8regwFj3cbD+fx yVnRpVxTHSRWrvksy2AkcXMENH+1+ho4Q+R4VQx3jV5PuuMT7g44NH+K9kLOtBRsrlbe BPHU9bVcRITMU8Nm4y+G3Pmhoty7/a67owjDsKqq+DUPV8wCwGSJXDyPgl0i9rChxQ33 dQRW5T2667buLlMaOuNOnDxYxsR6oqfhY/b6TxWdIsSFODPetx10pfhmsnKRiFKV8EnD vqdRY720kytuYY1c1Lma3PjZiQ4nM8YEpMKLkgf2/OyM/DosJ+02/pMPlyGw2IjK6aFJ IkWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si8983777pll.58.2018.11.14.23.48.59; Wed, 14 Nov 2018 23:49:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728800AbeKORy4 (ORCPT + 99 others); Thu, 15 Nov 2018 12:54:56 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:48522 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728527AbeKORy4 (ORCPT ); Thu, 15 Nov 2018 12:54:56 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 8D2B180691; Thu, 15 Nov 2018 08:48:08 +0100 (CET) Date: Thu, 15 Nov 2018 08:48:10 +0100 From: Pavel Machek To: David Hildenbrand Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devel@linuxdriverproject.org, linux-fsdevel@vger.kernel.org, linux-pm@vger.kernel.org, xen-devel@lists.xenproject.org, "Rafael J. Wysocki" , Len Brown , Andrew Morton , Matthew Wilcox , Michal Hocko , "Michael S. Tsirkin" Subject: Re: [PATCH RFC 6/6] PM / Hibernate: exclude all PageOffline() pages Message-ID: <20181115074810.GA9055@amd> References: <20181114211704.6381-1-david@redhat.com> <20181114211704.6381-7-david@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <20181114211704.6381-7-david@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed 2018-11-14 22:17:04, David Hildenbrand wrote: > The content of pages that are marked PG_offline is not of interest > (e.g. inflated by a balloon driver), let's skip these pages. >=20 > Cc: "Rafael J. Wysocki" Acked-by: Pavel Machek > diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c > index b0308a2c6000..01db1d13481a 100644 > --- a/kernel/power/snapshot.c > +++ b/kernel/power/snapshot.c > @@ -1222,7 +1222,7 @@ static struct page *saveable_highmem_page(struct zo= ne *zone, unsigned long pfn) > BUG_ON(!PageHighMem(page)); > =20 > if (swsusp_page_is_forbidden(page) || swsusp_page_is_free(page) || > - PageReserved(page)) > + PageReserved(page) || PageOffline(page)) > return NULL; > =20 > if (page_is_guard(page)) > @@ -1286,6 +1286,9 @@ static struct page *saveable_page(struct zone *zone= , unsigned long pfn) > if (swsusp_page_is_forbidden(page) || swsusp_page_is_free(page)) > return NULL; > =20 > + if (PageOffline(page)) > + return NULL; > + > if (PageReserved(page) > && (!kernel_page_present(page) || pfn_is_nosave(pfn))) > return NULL; --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --jRHKVT23PllUwdXP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlvtJLoACgkQMOfwapXb+vIKwQCgqMCGJ4BEWmMsp5gihD0MR/cx lFwAnAqKSOIHgjFwhl+uKuaItXeOXj2x =TTZ/ -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--