Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp351947pxj; Thu, 10 Jun 2021 02:18:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqGti8oKHTC0SQYv8QAd4a7RQpSjDosKUjQ4RShs15jwynt954neqh0BZQOJkzk4XN8LjG X-Received: by 2002:aa7:d555:: with SMTP id u21mr3821476edr.84.1623316704595; Thu, 10 Jun 2021 02:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623316704; cv=none; d=google.com; s=arc-20160816; b=PBhoTDAIAUxSAisgNdry/kAx7wBfvLMwjr1ohfY9B3HX+utAvahh758Kgh7DlVOE6Z ycaVx/vEJSYkeKdaRhuLfUCMldurwxs/QWR3uSkIuVbFiN3BfjBfMsLJmpb33VytQT/J 1I37scvTBAdz8wDrYL0tA6oB5kYgpsCWKPQfaTaA8LaHV2NtsIeyIO2WuvS8jNPXtXxJ XWMNRsfrZAw44rDYR6dL4RjQHuIl+3uv1jiXLOpbtBLJZJ60gTmKBU83jIJ7z3V2E8Cz JDVotuKpeFpxnbWMqIC2fvR4lZRLiyQtows5r2dqm6MFjn742emI4hLqfe+PaFMXf24k PTUw== 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=Wr6ozHJ9YAn6tkwbAWHJClxhdOSxSeF3/ANQDt15IBg=; b=Va0Tbtx5dFY6wxMkcuMUDWQj2yi6GRG7UP0lDZo9PC1JS1Uw+7RUFhppIRE5Nq04sj +rHeBj+SIZ5sM4yW/cfuP6LCK03qe1rdq+3l2K1402it+oTH7sJ8pmAOBS6fUVHhekPz dQxcl/e5qoS2uoX9XrRYQ6XU6fOUS0Ai/pUnzgYXhAFos33pXHzCue1dcAZt0NmMJWVT zNzO98iO9EdIQpqmlEU0ttmRYwzfDj7gBkfnt9OqGRLeBPKMMvecphrZQMpt/mojy5tV JbNePe6DodupIYh9J/tQ+x4GcudcIavfbFootEplUuLy9El1Y2mGAq7yEbnWw3iRfh2i wg8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Ao9890MU; 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 e6si1993615edz.65.2021.06.10.02.18.01; Thu, 10 Jun 2021 02:18:24 -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=Ao9890MU; 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 S230223AbhFJJSv (ORCPT + 99 others); Thu, 10 Jun 2021 05:18:51 -0400 Received: from mail-lf1-f50.google.com ([209.85.167.50]:43808 "EHLO mail-lf1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbhFJJSu (ORCPT ); Thu, 10 Jun 2021 05:18:50 -0400 Received: by mail-lf1-f50.google.com with SMTP id n12so2077897lft.10 for ; Thu, 10 Jun 2021 02:16:54 -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=Wr6ozHJ9YAn6tkwbAWHJClxhdOSxSeF3/ANQDt15IBg=; b=Ao9890MUAJW99696YdIBhyJgMld3AjAdkz2sm77UQpWPt/xd6TroiC2wAeeEpkCN9c NRfDglQ27QpEecaeYFvFbtV7QKzpNSzcOKsWWh8pUnLHGDzc59U1VPYSFR95EURJHqb/ +W+b7KfaRK5s7p386x7pkQiwgwVifh7cJ67EHY6QgzeCH2vzmoiLEs12HPfFICALeZU8 8Tf3kaOZEoPpKRnQb965vGDtnmXfy0dDnqfVXNbXHyYbGh+JcqOSv3ZhzLsnRgGuAkkx PFVc53sdfb97LVU5AKdcF7DTrtEXpweTYjzV9nXr9TUxm4aKMquoIbo0VE/PuRDW0vp9 FYLw== 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=Wr6ozHJ9YAn6tkwbAWHJClxhdOSxSeF3/ANQDt15IBg=; b=uiO2zjKw3B49MERKy0CXJhSapTe5i6tgIJKogSJ4gKoZcYdMGg/a/lv+Mme9DjKszW reCBnzov7L+tmWWxiGfkYdfidF3S0/C348UkEiNHjfcUpUvZK5V6QowleQP/YdOH0E9T Dh56tuEEqf1fBJOZVS2riuM+He7szX+DQ2IwvL7MVIi1DhFaq/OZNr1yvS7ry6MJE/b2 dajUARuR0XRnF62bGICGoXXkFCgP3EElK6UIDwI81V3UteVtqqDJ8fXQxzY+y4+RXT8Q ZkOoqC1UnxAdnBgpO0qLFckPBuGB+KB1f3b1YAvcWPtc+tQNavZg48i6dHJfUTCrCS0q YoFA== X-Gm-Message-State: AOAM532knxdDTtajMFI9uossX68tA6w4+XJEto/bTjqx52DyKI6ye+R0 IIij7n9Fi5cTqm8NwFZe9FFXHw== X-Received: by 2002:a19:2d0f:: with SMTP id k15mr1365708lfj.237.1623316553716; Thu, 10 Jun 2021 02:15:53 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id g15sm242114lfu.55.2021.06.10.02.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 02:15:53 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 11CC61027EE; Thu, 10 Jun 2021 12:16:09 +0300 (+03) Date: Thu, 10 Jun 2021 12:16: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 05/11] mm: page_vma_mapped_walk(): prettify PVMW_MIGRATION block Message-ID: <20210610091609.64kddqad5dfm2qrs@box.shutemov.name> References: <589b358c-febc-c88e-d4c2-7834b37fa7bf@google.com> <378c8650-1488-2edf-9647-32a53cf2e21@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <378c8650-1488-2edf-9647-32a53cf2e21@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 09, 2021 at 11:42:12PM -0700, Hugh Dickins wrote: > page_vma_mapped_walk() cleanup: rearrange the !pmd_present() block to > follow the same "return not_found, return not_found, return true" pattern > as the block above it (note: returning not_found there is never premature, > since existence or prior existence of huge pmd guarantees good alignment). > > Signed-off-by: Hugh Dickins > Cc: Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov