Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1301804pxj; Fri, 4 Jun 2021 10:45:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUOkS+jPjZSc3D/PZZH1VdSCikBGcsrT1M/zoUnLD7TLZIPF82BTp9k0OBrPrC0hQb7IGM X-Received: by 2002:a17:906:2dcb:: with SMTP id h11mr5351602eji.52.1622828722321; Fri, 04 Jun 2021 10:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622828722; cv=none; d=google.com; s=arc-20160816; b=QgwPLXHok8X5pEw+e1lIJ5dfFLu8yNR1YChcWu3nfvOPMg3Jj4sT9xZ11PSUBoW0kF HuMqK+9+6FfJwFH/tT/GFvgeRtBz4Row33cM15ow/wyEkASB+hopzRd6dq5wiytSVP1r +Z5G5yOKzaIfN6tEko27s71luuyaBpRbUIjY7Xe4mya0GvDDoS6CZyVNa3kzKK04f5Lw U+MnRyiJAARVq+SNFQtlcNYDFiLxVVwM2SziFUQSjAhgTbQRFI1jjKGMOHcR8RiOVyHc QDS8I0WKKqfxcUB8JC5Nbh37B5Q1t1DAr4J/aGQf20KKvnq/XQ5G9fkQhfY7B6lKbN8Q e9qw== 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=kPfCKHq5qPuRR/PUNf7xuTzUEgaFOPuNN665O2fOMb8=; b=sMstTPrArbJqgc0N/qwikEp7qkKJajz8CSk3sx5ooKbuXftD3s17CknOySph/tuzcd KaZxDfHv1NhSIe/RBtlrmXonuhrSqkDSrWwlFLEppDIbR8Q+Puzrm+TUnoDuhwznG+8b xE1A5p5+q8lqeOzA1uJbPncbNVuArnoxDDV/KarXwSjFtJ+SVU9vgYUba8G3WBoe+6QJ odeHm2C2z97sBEfFRP8vOAvQ9o53XmvQ1pHT53RqoS5B8JnFNDn38fhoRlKJ5u+jnJWm vBfkRkKELJb2bWFkKWzTjA55PGz5+aQAJcMEa+sTdFEOIQyyB+ltcG7ocp1rE2g0Jr7v wZOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=myO+bgIX; 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 bm25si5101683edb.202.2021.06.04.10.44.57; Fri, 04 Jun 2021 10:45:22 -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=@infradead.org header.s=casper.20170209 header.b=myO+bgIX; 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 S229810AbhFDRpK (ORCPT + 99 others); Fri, 4 Jun 2021 13:45:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbhFDRpK (ORCPT ); Fri, 4 Jun 2021 13:45:10 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9713AC061766 for ; Fri, 4 Jun 2021 10:43:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kPfCKHq5qPuRR/PUNf7xuTzUEgaFOPuNN665O2fOMb8=; b=myO+bgIXWgBFx0ToWrp8epd0iT kfK1VwZpcy51yLbEkaB4cLS8u0+vhijn5MNItIyGWP0ghJud/I3EOhRPR7NaeeNny3NZJmTsu5Ur0 728HuDF+JH506DQqNvtdknj5HjQsQ891j40UgissulFjj+Ide7LU5iBCE3n6I3tua1MY9xufPEgZU MDJYFd9lPAyFGSof9UROVj96LsIOqcFYIUkt/rand/gXFLckqJUiYzhZHn7kZ4ph4H0/OasF41z20 Po0Jy6rmSztfSkzW/hRGmGBCgZQwO2OPpx2m2eV7zrZqZqmY309QXyCc0EbCdXxdOfrWncsYkFy7w DDXtllew==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lpDq5-00DRHH-0D; Fri, 04 Jun 2021 17:42:36 +0000 Date: Fri, 4 Jun 2021 18:42:32 +0100 From: Matthew Wilcox To: "Kirill A. Shutemov" Cc: Hugh Dickins , Andrew Morton , "Kirill A. Shutemov" , Yang Shi , Wang Yugui , 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 5/7] mm/thp: fix page_vma_mapped_walk() if huge page mapped by ptes Message-ID: References: <20210604162402.iclcdd3ywynkoamy@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210604162402.iclcdd3ywynkoamy@box.shutemov.name> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 04, 2021 at 07:24:02PM +0300, Kirill A. Shutemov wrote: > > /* when pud is not present, pte will be NULL */ > > - pvmw->pte = huge_pte_offset(mm, pvmw->address, page_size(page)); > > + pvmw->pte = huge_pte_offset(mm, pvmw->address, > > + page_size(pvmw->page)); > > AFAICS, it exactly fits into 80-column. .. not after putting the 'pvmw->' before 'page'. > > if (!pvmw->pte) > > return false; > > > > - pvmw->ptl = huge_pte_lockptr(page_hstate(page), mm, pvmw->pte); > > + pvmw->ptl = huge_pte_lockptr(page_hstate(pvmw->page), > > + mm, pvmw->pte); > > And this one end on 79. likewise. I mean, the 'mm' could go on the previous line, but that's beyond my level of code format caring.