Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1257865pxj; Fri, 4 Jun 2021 09:44:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+mVnxRmq8om8cErRKB685et5uuV14PhbcZTIujMbcWpb6vhbPsdGocQwMi257H8mu/bRU X-Received: by 2002:a17:906:405:: with SMTP id d5mr4950814eja.403.1622825061605; Fri, 04 Jun 2021 09:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622825061; cv=none; d=google.com; s=arc-20160816; b=k3y0vbgK3Bew3qo+onkFMtRTh0cqqWxnA3cBJJZdkhvxB250HIAFXduHBphp6UPRJn vJxvHO06DAMw4A8bkGtOmDOF+uGTolwlUbnAja86VCOmE58uUX8d+vX309Xodl3nqQzN wRJ57VbAtVg4C5aqFRAAijP6PNa+tptDMWkd9r0t11ebqMA6oCCDPSHfmutbf9aMUkV7 rGy+p4gmrPE/SwNF6FiSUEulp5Aaq7ByHHQ8Z+zyCC8R7kHDY1Omy1Spe7LoCdAUnWJ8 TFqkL65M/i0TXQsKswE0Wey5EsF/wBZdF4fheEHh9LtmQ+G6EJHSjUd5IeOWjrgu5XEA mlbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qhFNdOFEb7tY8E3v9lMAy3fzJKa2EYZF1NmtM8kq03Y=; b=IEwpALxBrFg6YiI4bmFdkZlaLnGauo0gc05VhHRN6hM00IoJD8kDev6WBB01o7DVyT etON1rEO1F0jHkvCYnlmua+tdmsJ/98i52O/PqsHCkmDEZeK52bCl768Z8IZX1Ylg7yR yEuhmYvGrLFDrfmjdrNtQxZbzn5wFbrcT3TLbmOcGdwFKJhC1k1ZpTVO0qEWa6r91eEz oQYY5K+kIVHaCFcpEx9gKWw83eWBmHeswE0Vy8r9Qo7axxIeEzF+yEfarys1OhvsYnN/ 1BRUTvkdDJF45HwXfnXvOgmz93WnEKjC4vvCq/q6BA5wfzcELp02GbGhWN0S+aslA2pI W0mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=miPPXNCo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si5171947edr.588.2021.06.04.09.43.56; Fri, 04 Jun 2021 09:44:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=miPPXNCo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230034AbhFDQml (ORCPT + 99 others); Fri, 4 Jun 2021 12:42:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbhFDQmk (ORCPT ); Fri, 4 Jun 2021 12:42:40 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6AD1C061766 for ; Fri, 4 Jun 2021 09:40:53 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id e11so12334135ljn.13 for ; Fri, 04 Jun 2021 09:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=qhFNdOFEb7tY8E3v9lMAy3fzJKa2EYZF1NmtM8kq03Y=; b=miPPXNCovT0YwVjgGfAqeZGUX8KyHm0bPfhSO4EFDMf1mmQLqeJOmpY5tMvpghjiIu 4DwPBK7hc9MdrSZMgVuFgSApNQyzdRu/qSDWptesD0BbMdZFAfPXF6rAhOerWnxC+Wrg lEtkOuhPN2OzxJGbwyYgWmK0lKc3RKqtDwv5kEJTH41eIC7vBxbHto7OdNztvCUDmjcp W/zTpaVqoud7n6bx+0BMDKuig+EC3qD3ELjgeRvx1ezMotXBDlfwdmgxVzz/5/mtGlVM cIiYs4DFSLe6cabD1lzMemB98fSMPIZAJmA/1lNyWHAgNiNzAVtb7BYzWSvcTYn3VhWA vKkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=qhFNdOFEb7tY8E3v9lMAy3fzJKa2EYZF1NmtM8kq03Y=; b=bOLeoxRqwlLWwftEeeIE+GhidR+dKP9gUo92Ro5xirQWOsYUNOKXravEeuKnHbk8TW GBugiZI2HTSf3PqUxC653G2o9mzhd/rSmAYngq6DPAwGHrntEDpY8/thgZbTi00P/VSK tnJDb/M2pL5++9dZY0ov+ubp2mdpxi93bSa72+IwGda0OHwMMn5GKgaNuOmpAc6W9ks1 5J6K5x5R8JhoHdf0Xerux8b+prmnXflPFaLfp9/cx3jA0lhMtcN1ROD9+PlldSMYv3u9 tOgFtQblOMqRnGHasPNcVga2ipGCVZPiIDwJ5gWiszXFFZUlFAyz1YRQymlNWBchnbBg Y6MQ== X-Gm-Message-State: AOAM532yRu/ksfp3LAkkXYYBUdQtJnpRp9+tWSqgjc/pTm/91e/z+uF0 tZYODiRNXVAen1j7tssIr0DJqg== X-Received: by 2002:a2e:9945:: with SMTP id r5mr4111309ljj.324.1622824852172; Fri, 04 Jun 2021 09:40:52 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id f9sm190602lfu.71.2021.06.04.09.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 09:40:51 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id E6EDD1027A9; Fri, 4 Jun 2021 19:41:03 +0300 (+03) Date: Fri, 4 Jun 2021 19:41:03 +0300 From: "Kirill A. Shutemov" To: Hugh Dickins Cc: Andrew Morton , "Kirill A. Shutemov" , Yang Shi , Wang Yugui , Matthew Wilcox , Naoya Horiguchi , Alistair Popple , Ralph Campbell , Zi Yan , Miaohe Lin , Minchan Kim , Jue Wang , Peter Xu , Jan Kara , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/7] mm/thp: remap_page() is only needed on anonymous THP Message-ID: <20210604164103.bvwe6a2avgjbjmyn@box.shutemov.name> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 01, 2021 at 02:17:19PM -0700, Hugh Dickins wrote: > THP splitting's unmap_page() only sets TTU_SPLIT_FREEZE when PageAnon, > and migration entries are only inserted when TTU_MIGRATION (unused here) > or TTU_SPLIT_FREEZE is set: so it's just a waste of time for remap_page() > to search for migration entries to remove when !PageAnon. > > Fixes: baa355fd3314 ("thp: file pages support for split_huge_page()") > Signed-off-by: Hugh Dickins Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov