Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6819568rwd; Mon, 19 Jun 2023 12:59:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fAVf8y7h+H1PDTBzawogcxmFdDklnAuUNkpCI2rebLU9TyGekyLKr9GkRtmiKM/F0WxLe X-Received: by 2002:a05:6a00:14d2:b0:65e:fca6:f2cf with SMTP id w18-20020a056a0014d200b0065efca6f2cfmr10496432pfu.26.1687204744503; Mon, 19 Jun 2023 12:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687204744; cv=none; d=google.com; s=arc-20160816; b=dCfRL6mKxkXhf6DoBTwqHIan4WzFa7bsWUXTfI2vmUPvs0o8qEkdxy/ZG4WDrfLL55 WJVd3Gn+KXnquk+IXClhIaDpIJ7BGNvVl/S4BtXPR0uWlCecBAIe92y0jxGOTWD31uMp ORN8d4A7ctLEfmRQBXxEFlfXEa0XyexSwQQh3jhgBTNmEHowylEOmVA27WVHSsUVyMiR oSs+YWmm9smIzH2tsBRYYcX3vpi1eXZMU3g+SZSFDi9f924Ie7iIkOm5WsHlqldRJQuG Y08h/ohudOpHbxAyfjQFKKF0c6iTKZYyGJwraufNBs3G0Tf2oEzyl93LV1Sbf3xeOXRK wHuQ== 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=NKoKC0b+LCjcSl2EVWbdFRgACSV8gQthNjDiIthburU=; b=Qr110XzA+aLRr9EfTG2Q5ArkJmzYd8GKj82tXEOR6BiDmvqe/upCPSLqIgXlLWXBNe N/k7xJ45qo8WOJGsDosZ9mCd0f2b6QjhrGioWaDRa5A26Hn5bINMNkLoOd4Hk5xFnuov CBVcXeu+W1d0cHpIJnOXeaaSr1Y3F8Iu41fW9ZE5oPpQiyleIGZvtFuzYzfGeBs4dxMZ UaPFWAo3AVH97ruov8Kinm3eQOaRb5ONljU0wvlByLBrnmdFLhZgbzB8TBMJ+vt+5LpH mTauObK1J7aROSFtDOMdvllrrTdS3QVq8Twe20TchrXMowUG6zqPo7DFBBxEsuiVyS+/ nMEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CZSIYjYI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a056a00000700b0066872c159cbsi153050pfk.122.2023.06.19.12.58.51; Mon, 19 Jun 2023 12:59:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CZSIYjYI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230384AbjFSTmO (ORCPT + 99 others); Mon, 19 Jun 2023 15:42:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229905AbjFSTmN (ORCPT ); Mon, 19 Jun 2023 15:42:13 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B52F3118 for ; Mon, 19 Jun 2023 12:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687203684; 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=NKoKC0b+LCjcSl2EVWbdFRgACSV8gQthNjDiIthburU=; b=CZSIYjYILznvOaWyV7XdNytwygJU4wNDSfKMIPqOGiM6004pr+nfpUDzSZlZUzZed22iO6 Iydu++cWIx8gyTWTPWhsgwU/FRZU/ITXOlyT6FpwcZ+fjSSxWCSm6pf6KRCQtSLEM0xvyI Aa6RhE7NYg7B3UZ7AxYqiFYyNaz62WI= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-473-PGwI8LK-MtG0uTRcO5ItAw-1; Mon, 19 Jun 2023 15:41:23 -0400 X-MC-Unique: PGwI8LK-MtG0uTRcO5ItAw-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-3f871a1e3f9so6857181cf.0 for ; Mon, 19 Jun 2023 12:41:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687203683; x=1689795683; 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=NKoKC0b+LCjcSl2EVWbdFRgACSV8gQthNjDiIthburU=; b=RU54m/NOfiS3ex8q/c4RISTbe0RHJZbePejCAlLpNm95WDm2+IskUwAa5nnlevi115 494Urpic+YOk2dH4EgTpkrA9eAE08FaQ+Fipb7K7uQqzXoGxj3EMTZqExm0l+dNv2Co3 ULjZd3VSRs4AWR0SmplwwuYWRpFv5I8H0/EhFsh6eNw1/zZIg61UEkNSeWLzmoJPaMJN 5Y5nu5eo05bqF4ajXSkvM21WTldK9RGVFHh2Rr5EpQNtj5Bj2Uzm3AECnfcJzUlm1EAZ hxbvX3616U/NVmE5gacmSxPuSzEXc1SnowXs6r3txU5Z/7Uo+C8aEyxyovnmOxa+wveM 6zuQ== X-Gm-Message-State: AC+VfDwx26MvULdFEir6s+joXKwkNREdCRBquc3fGFS4D60qugSQ9say NquyJ4/uCAmnOKZE+qkqzugBmqWQINTFO+J0QvHeJ23e49nlDOHD91TNoJLc1oc3CcP1A3yV3RR 3uDFLcG+8+Mkg/WXH+bU7wTy2 X-Received: by 2002:ac8:5842:0:b0:3f9:ab2c:8895 with SMTP id h2-20020ac85842000000b003f9ab2c8895mr14600248qth.3.1687203682937; Mon, 19 Jun 2023 12:41:22 -0700 (PDT) X-Received: by 2002:ac8:5842:0:b0:3f9:ab2c:8895 with SMTP id h2-20020ac85842000000b003f9ab2c8895mr14600233qth.3.1687203682664; Mon, 19 Jun 2023 12:41:22 -0700 (PDT) Received: from x1n (cpe5c7695f3aee0-cm5c7695f3aede.cpe.net.cable.rogers.com. [99.254.144.39]) by smtp.gmail.com with ESMTPSA id g4-20020ac84684000000b003ef1586721dsm227166qto.26.2023.06.19.12.41.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 12:41:22 -0700 (PDT) Date: Mon, 19 Jun 2023 15:41:20 -0400 From: Peter Xu To: Lorenzo Stoakes Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Matthew Wilcox , Andrea Arcangeli , John Hubbard , Mike Rapoport , David Hildenbrand , Vlastimil Babka , "Kirill A . Shutemov" , Andrew Morton , Mike Kravetz , James Houghton , Hugh Dickins Subject: Re: [PATCH 7/7] mm/gup: Retire follow_hugetlb_page() Message-ID: References: <20230613215346.1022773-1-peterx@redhat.com> <20230613215346.1022773-8-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 17, 2023 at 09:40:41PM +0100, Lorenzo Stoakes wrote: > On Tue, Jun 13, 2023 at 05:53:46PM -0400, Peter Xu wrote: > > Now __get_user_pages() should be well prepared to handle thp completely, > > as long as hugetlb gup requests even without the hugetlb's special path. > > > > Time to retire follow_hugetlb_page(). > > Nit, but there's a couple left over references to this function in comments > in fs/userfaultfd.c and mm/hugetlb.c. Indeed, let me touch those too when respin. > Absolutely wonderful to see such delightful code deletion :) > > I haven't really dug into the huge page side of this in great detail, so I > can't give a meaningful tag, but I can certainly appreciate the code you're > removing here! Yeah, hopefully it'll make the code also cleaner. Thanks a lot, -- Peter Xu