Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp364863pxj; Thu, 10 Jun 2021 02:42:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxT0dAc+EQftEDY2/dI/cgI36acR97oSDrHBtc7LqRWK05oO/wTSLdPqeX6vS52CWDTVlr X-Received: by 2002:a17:906:b855:: with SMTP id ga21mr3648252ejb.550.1623318123207; Thu, 10 Jun 2021 02:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623318123; cv=none; d=google.com; s=arc-20160816; b=BBbA58R8274djeowrw66+GNjMk+1PxvdnaB/Td+X6n9ps73wYpMP7B0dZfhcBAGIpx 55uwIj0hx1ml684v9SsK89jQ0hTYs+/oBrETgEXy6Bj2oa+WldFZPnZXQrRK32fQGIlA 5pnh9P0fBIXqm/G9hkZVxjX3/41BJQnrh2GsVt4OcsDZ8CcdEQVITNVDCN+EiBB8ZtVb gznYfRVsBQe7HCDjlVdV6k5FcALVpKIShpuRg8pU0ecZU6mQYZdd0FVMZiilP9uC2nJ3 GDbhJ4RoO8ynTtS8v8DMqHHrnxHwK41EoycLi935emvHohhfXbtUEv5+6ipfWel86UdA CN8g== 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=uiBF8oGdGwg4soSH3l9mTBsEsWc8HaqWV9DzR3YGpGE=; b=myl9OQEFXSHKTLmzT+OS/m1boKP/D5IBaJyAhn9cLuvXEVhymHAewLkN2cPOfwRcIU CSBhMy/1HOIVM5VBD715l7EpKUPJ7PdLNn+kRQoZEQ/RBn+e4RbuoIZerhpPWrBqeKZg etvIuOhu/BwbKzDF8DP9uBSD3OOdh+NzbG3g6nZ/3R+24gi5lsNE6PJm/zeNabqkqE+m P3gcA4xpXmIAURIcNPdFv0Z8E9yvRcblIQRvDWEOidsgJgudVdoTjL+Lte4vZ8Yn6yTN n7kIGySikJLYpd5yvWz0LSfs0PyZGlfaeN4sVYrWS5/E+7SB2y8QTCAzubjsVv03yXjs jvRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Uxq2AgxB; 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 r8si1960707edm.79.2021.06.10.02.41.39; Thu, 10 Jun 2021 02:42:03 -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=Uxq2AgxB; 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 S229979AbhFJJlw (ORCPT + 99 others); Thu, 10 Jun 2021 05:41:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbhFJJlw (ORCPT ); Thu, 10 Jun 2021 05:41:52 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEFEFC061574 for ; Thu, 10 Jun 2021 02:39:55 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id p17so2205744lfc.6 for ; Thu, 10 Jun 2021 02:39:55 -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=uiBF8oGdGwg4soSH3l9mTBsEsWc8HaqWV9DzR3YGpGE=; b=Uxq2AgxBMmVFJjkYUeehwF1e1oIYB05TC6fFhIenvZ8EaafPU5ksxFnuE2teh9iMyL CI1+J+L4lKXTTNwQ4+C3zHQIOVWL9VFVSgGh0rN7JROnnJbOD2LEPysXh0piMVGW6mts otFnCV5cyQTzFSfydCmyBYCGRGDTGt8lNJ5AZ+8dEx9dufIKLuuWWSdcQeUdzN9a3ziB SXM3kulVt8jmJLbNUpN/9ugVhgXiKSKlpyYms4La868O0zXfqtpz2OzP2+kQvlVRY0Bc TSn0fU99lM40JndXxheYmrnJI3Yfht9IyEKUu/Vcj1cuBNH42Sl2kzsnP+41keJFlhDc ECvQ== 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=uiBF8oGdGwg4soSH3l9mTBsEsWc8HaqWV9DzR3YGpGE=; b=b5p2hdj/ADXSLh3vWinn3cSoUUepShSySNokVl5Keb2n7a0QjjUb+zSujTSzAU7ZdJ 3ixYDp/kFZbDGaor65hvInxrSTAfo1Lf6yl6QAoBeZgWiFN3XvnQkaMDsrEtrFQUqiRc BFrOHgvPoTQqVsn7IgZwr7nV+NsT1WFiD0uGfVxPixdAHOxaNpUXBR9AJrS4dNgajO+5 F1AkO2viyqXODfLiVQ6n+bb28wB2ZM63DEiqv45g+2v5YJNnqosEJp35BcjE4uQRKI7v FTJ+ckmr+5JEqsgqQvX8QKXdUz83KRMUFNbsDKmAm1dTAvAg2oTrkxSjNXHBEvBjMG55 uQhg== X-Gm-Message-State: AOAM530MGaLd/zrmycJW7XXZGglOsgz1kh27jUrUNuR/SLTY41bDMvKZ iHL6S8mSvcluwc1KZMyPyUqVrQ== X-Received: by 2002:a19:c1cd:: with SMTP id r196mr1277086lff.643.1623317994262; Thu, 10 Jun 2021 02:39:54 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id p26sm278471ljn.33.2021.06.10.02.39.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 02:39:53 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id AADBA1027EE; Thu, 10 Jun 2021 12:40:09 +0300 (+03) Date: Thu, 10 Jun 2021 12:40:09 +0300 From: "Kirill A. Shutemov" To: Hugh Dickins Cc: Andrew Morton , "Kirill A. Shutemov" , Yang Shi , Wang Yugui , Matthew Wilcox , Alistair Popple , Ralph Campbell , Zi Yan , Peter Xu , Will Deacon , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/11] mm: page_vma_mapped_walk(): get vma_address_end() earlier Message-ID: <20210610094009.p5agcrbt26jelkwx@box.shutemov.name> References: <589b358c-febc-c88e-d4c2-7834b37fa7bf@google.com> <4542b34d-862f-7cb4-bb22-e0df6ce830a2@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4542b34d-862f-7cb4-bb22-e0df6ce830a2@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 09, 2021 at 11:50:23PM -0700, Hugh Dickins wrote: > page_vma_mapped_walk() cleanup: get THP's vma_address_end() at the start, > rather than later at next_pte. It's a little unnecessary overhead on the > first call, but makes for a simpler loop in the following commit. > > Signed-off-by: Hugh Dickins > Cc: Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov