From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752464AbdGYQjS (ORCPT ); Tue, 25 Jul 2017 12:39:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47582 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752144AbdGYQjR (ORCPT ); Tue, 25 Jul 2017 12:39:17 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0D2E913A42 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=riel@redhat.com Message-ID: <1501000754.26846.18.camel@redhat.com> Subject: Re: [PATCH -mm -v3 01/12] mm, THP, swap: Support to clear swap cache flag for THP swapped out From: Rik van Riel To: "Huang, Ying" , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner , Minchan Kim , Hugh Dickins , Shaohua Li Date: Tue, 25 Jul 2017 12:39:14 -0400 In-Reply-To: <20170724051840.2309-2-ying.huang@intel.com> References: <20170724051840.2309-1-ying.huang@intel.com> <20170724051840.2309-2-ying.huang@intel.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-JGnX+WNAlkTa98wxgIIV" Mime-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 25 Jul 2017 16:39:17 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-JGnX+WNAlkTa98wxgIIV Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2017-07-24 at 13:18 +0800, Huang, Ying wrote: > From: Huang Ying >=20 > Previously, swapcache_free_cluster() is used only in the error path > of > shrink_page_list() to free the swap cluster just allocated if the > THP (Transparent Huge Page) is failed to be split.=C2=A0=C2=A0In this pat= ch, it > is enhanced to clear the swap cache flag (SWAP_HAS_CACHE) for the > swap > cluster that holds the contents of THP swapped out. >=20 > This will be used in delaying splitting THP after swapping out > support.=C2=A0=C2=A0Because there is no THP swapping in as a whole suppor= t yet, > after clearing the swap cache flag, the swap cluster backing the THP > swapped out will be split.=C2=A0=C2=A0So that the swap slots in the swap > cluster > can be swapped in as normal pages later. >=20 > Signed-off-by: "Huang, Ying" > Cc: Johannes Weiner > Cc: Minchan Kim > Cc: Hugh Dickins > Cc: Shaohua Li > Cc: Rik van Riel >=20 Acked-by: Rik van Riel --=20 All rights reversed --=-JGnX+WNAlkTa98wxgIIV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJZd3QyAAoJEM553pKExN6DIBIH+QGfbnm2XcCh4zLIhdcxewg9 M+keFO2JB5XGcCMkVJN80nQeI0clW6i+QcfCDWTKnVbgfmJL9Vyxe7UyvuDWDX3k kNgocM9neGx823Q43h1xN0UoxUsZVreSXAMzAq8iGfGaJR96gYeWn+oHJ+2hK3AM xe/gtX4GWtj2sVnres2VD0tMB2BypNFjMUO6NdyCaYyxD5gFSgqU4zCW1bztxcEF 2PdXXU6TfRd549SnZYXKP/JMXyzCwaJlwkFTQc7zUd1Kb81S8wpuxDJQ9sU/4+Zj 8g6urYb6SDWTSVcZvklDfRPihE47sp1sEh6HS51U8mUj/UvxMMZ/dk9gJDwSkMY= =+Exg -----END PGP SIGNATURE----- --=-JGnX+WNAlkTa98wxgIIV--