Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2310170rdb; Wed, 21 Feb 2024 03:55:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVjX6g2czMonQ+LHSdtkDDJFQltBy5OxHL8eSNYcNVwy8zNfuMruzAV7Cjwla+/C8/HzQEf7P6Ainjr48NENRkQTPD3NyWfgCK5onChUQ== X-Google-Smtp-Source: AGHT+IGABb6sV6wND5JW5ZXJvmn7rKfdRTofjYWxttAYzfB2GqQWeT/eC2LrqG2ngJg3JuVv6MPg X-Received: by 2002:a05:620a:1908:b0:787:3c8f:1b59 with SMTP id bj8-20020a05620a190800b007873c8f1b59mr23494731qkb.0.1708516542028; Wed, 21 Feb 2024 03:55:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708516542; cv=pass; d=google.com; s=arc-20160816; b=AO0zXuROEizduGMMrYqPdrDTFKCs6B8CF/sd+OJWONwkAd+uLASWV+ka5CK2YAT9YK qR/uMNr9rANVuOaH5Xf4tG9Ll0pS8yxJhOttM1J+aywcvIJYYVXZRK8lmyW/ru8t+EHX ccJU77bvBECEniOzVPrtXLzLOaHTaz2PcPol/Dj6l5zT5hR0TRqe9+t2uN+PvGw+RmcM UPPUK87/TkxnHPPU9JwMto73mtPg/zo3dqEItLV6nzp2vXzmP2M7Yao//JemU3w//d+T Ox7sbuuxUgZwbQf79/HqsPWyimZYAna5GGTE8n+sLHZV8U+V2RHkAon/BIsOd+EVnJo0 lrWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PLsLM/ECtgqgj6YScdKuDzdQeO2PVy2fvKFbE23nuA4=; fh=u726G975ZJIjXmw6y5qe8QfzDAIdfQ2rJVwPqQHLBGI=; b=z0iA6xpaMC1cdE0CJv6nJYPI+BliaW/anKpKagZQ5D0VwfKhAf1jv7PZ2yYqEoagjj ReWxGklklADku9yyZ0gHwFbhRyRH97Oy+uYcx2S8Zl8gK5f9Jsy5FR8k6D5axcu9KUdp mC44iQrtp1XNF5f6h5oa/f+u0/Gg1KC54j9HCtXsvNxKIHZqbCzycC9lcC+n9VQGRRFg k0Yq70KPuXZe6lzHlCKhbm+WgA6W5//7YQmirQNiILYbIBfmkFSRK5KxONpeoK4f+VlD MBtqCb+63UsqsR0m0MT1XPDKia6EvzhaJWT2m05h82UNZ7f50ISXhf89zQNc8auxVWcg 5rwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gNnIhRuw; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-74667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b11-20020a05620a088b00b007816c894164si10668573qka.370.2024.02.21.03.55.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 03:55:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gNnIhRuw; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-74667-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C02D51C22266 for ; Wed, 21 Feb 2024 11:55:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FDCE47F64; Wed, 21 Feb 2024 11:55:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gNnIhRuw" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A31041740 for ; Wed, 21 Feb 2024 11:55:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708516535; cv=none; b=h6ZMKZUNF8vgN/SYiDoFBz8H+I1veJLsZ7VPkhtEVYU2n15lcdzQZO0btkQ6rJGAsu0dPJuPwusm0YtJvzLrhhQEoOd2UkOZ9ENnzHdFXmx2KUhERPOkH4gCmfOS4nhKoKIPhLREoP3Jz3XDU3/r0o+ZADmeU8MVFJr1TC8fXn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708516535; c=relaxed/simple; bh=BEkM38bqHddTPCsgf39ufvkDQzRXtZEp09KQ6OMKXjs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GPiNYqAxg6XiCago6jFUU3s02nn5nVZRjOPWlqTLzMeNcEP6FAdzNsoV02tqPVjCHTQvwUKd0+TcET3VwpCTg3bgwVNaaoE5zhxonsgFDVpVjjjVhqgYiA1xEFaushsj0OcBL95FPQG/8cDN4NjJTvJ3nf0G+AI2Vp0AFaZlL7E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=gNnIhRuw; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708516532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PLsLM/ECtgqgj6YScdKuDzdQeO2PVy2fvKFbE23nuA4=; b=gNnIhRuwWXTUPY94+SLGU4tBD9l1D8CovC5/vKWMsRxSlPhO0cBiF7pFB87rnB2tPz8nlg CfGMNE02QxUeMZoUBo4mmcfUsIsK6cXArci/zzuUbYND48wcArZo8zcGHK2oMZrjIseIlr Sz0tdoqwe0K0Dyl0iMU/DpEAjjqFupA= Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-627-LlyLNLsSNrecmjh3f-hMXw-1; Wed, 21 Feb 2024 06:55:31 -0500 X-MC-Unique: LlyLNLsSNrecmjh3f-hMXw-1 Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-5ce9b15f4ccso2844691a12.0 for ; Wed, 21 Feb 2024 03:55:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708516530; x=1709121330; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PLsLM/ECtgqgj6YScdKuDzdQeO2PVy2fvKFbE23nuA4=; b=anHyroS34zwbAT5Af98vLJPTnQ/TmpAoWfHJK43t2OYZU1hMOJm+yaPnvtM0IEOMHh BlKURUPom0pfRK4YcduW08fkD/5xEWyDqw+QuX2y+UTFOHWn0BxJSSXkCTYi4kIZF6Vc M+/HBsrlUuIEs/wc14S7lcmBmHEYdZZwnT7aT1kQRZ8/lVQBb1y7KTjT1fYCAynYRfcj azlhn5N7Q+n256e+rAly7dTwMvQ+fYYzmq/JGF+ImSSuvxc/7QkNFWJ1l2YLrQ26KIIw /BMHcw4oYlNWdEKMFXNJL5GP8tfIz7WmLQtwW9mUxcYkjLzlMwkqsOfGuR00jYz7fKYR riCQ== X-Forwarded-Encrypted: i=1; AJvYcCX65aMzZxsYqOxHN73Z/vwPpOmxVqW3QeH5Psj7nGKOFVe+ui1JEh/bBl+ea6XWPd2ZrvO22gnUpYejnHml/nUfhCcCWJICtl0sHltq X-Gm-Message-State: AOJu0YxisYwYcwR6L0td+8Hz3mZ6P8ipxEMbtxXutTkXZeeJBkKjfJuD eQMdV9SZdG8kadCKqAr7gIFrjV+t5/Fmv5WjCkqxKoWj2URkQHIrpkpo8W4zMtbwuTqHDWycI5h l6fl3WpRkY1ia599XslYDrSXCsO2jJZETPr1QJbK6By7ih8ADqckeuk3wS+ygiw== X-Received: by 2002:a05:6a21:3397:b0:1a0:cd02:b2f1 with SMTP id yy23-20020a056a21339700b001a0cd02b2f1mr196518pzb.3.1708516530458; Wed, 21 Feb 2024 03:55:30 -0800 (PST) X-Received: by 2002:a05:6a21:3397:b0:1a0:cd02:b2f1 with SMTP id yy23-20020a056a21339700b001a0cd02b2f1mr196492pzb.3.1708516530136; Wed, 21 Feb 2024 03:55:30 -0800 (PST) Received: from x1n ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id b3-20020a170902a9c300b001dc0955c635sm4149309plr.244.2024.02.21.03.55.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 03:55:29 -0800 (PST) Date: Wed, 21 Feb 2024 19:55:17 +0800 From: Peter Xu To: Jason Gunthorpe Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, James Houghton , David Hildenbrand , "Kirill A . Shutemov" , Yang Shi , linux-riscv@lists.infradead.org, Andrew Morton , "Aneesh Kumar K . V" , Rik van Riel , Andrea Arcangeli , Axel Rasmussen , Mike Rapoport , John Hubbard , Vlastimil Babka , Michael Ellerman , Christophe Leroy , Andrew Jones , linuxppc-dev@lists.ozlabs.org, Mike Kravetz , Muchun Song , linux-arm-kernel@lists.infradead.org, Christoph Hellwig , Lorenzo Stoakes , Matthew Wilcox Subject: Re: [PATCH v2 06/13] mm/gup: Drop folio_fast_pin_allowed() in hugepd processing Message-ID: References: <20240103091423.400294-1-peterx@redhat.com> <20240103091423.400294-7-peterx@redhat.com> <20240115183748.GR734935@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240115183748.GR734935@nvidia.com> On Mon, Jan 15, 2024 at 02:37:48PM -0400, Jason Gunthorpe wrote: > > Drop that check, not only because it'll never be true for hugepd per any > > known plan, but also it paves way for reusing the function outside > > fast-gup. > > I didn't see any other caller of this function in this series? When > does this re-use happen?? It's reused in patch 12 ("mm/gup: Handle hugepd for follow_page()"). Thanks, -- Peter Xu