Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15808832rwd; Mon, 26 Jun 2023 01:23:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Ch8Nk0OvTc2M0Mb9SdhTWR6ruHa+Qc4dDcP9CVeeu2x/um0TqZtrWI8KpTxcXREMVgATB X-Received: by 2002:a05:6a20:8403:b0:11d:9249:170e with SMTP id c3-20020a056a20840300b0011d9249170emr40152872pzd.12.1687767834377; Mon, 26 Jun 2023 01:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687767834; cv=none; d=google.com; s=arc-20160816; b=jwKz4fCPzNCQwydAAoPbQbnUhTPfYa1lEYRMyUkdOUt1mOoUoeyAZo2l19kCOXfHt6 8e/F4KUUOEgIsRJex+p0eZMQtvyFFt2L2hgXsvG0CN/IS+r8D5pqcFGm8WHoU4adnK7n zJ0GDrqllvGZ7SLjfsD5MIKs2gG4awEBMOnW1kN4No4B3HOeFmNxDzn/wUJFGR4ILV9I +7bmNM+Zen45yiLb5cFiNUNn9nS6ypprZQtsiD9sY6xCxeOVzVVIghF2+D1ZVJ7gdf1o 5p2jXe1KQ4SUHVpKr9VFCgA7lYnRxlYlc+yJwhFeGl2BUDkR+MY8M8qjXhdv5pMiRYiR Ngkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=KqoKmhBlTtHVnB8gm1nDpTAgK/1vm8kZHpYD3t91RRo=; fh=qwBehi8McT2nubRUemYpqDiqDkppJC7G8i/GgZ5RmZY=; b=tlvBOGKaDsKqoKp7H2kqFpADhZDX1RypFmBxTg1jGe5Q01eUjNi9gvEC4hQ/zYfuGP qsUvbhFL/T8HN22ulmRkBZyw8rfj+YLrCoxLM0llZ0muBrioDXoNiRjsJNXUfP57VMUx RVFUETAou/uYm4sjWAU6KEVRvF/9QisVyjT2ckz8wOvrCTKaXq0w3ZFULJH1/N3zWjP8 G6h4+OSzELy7+G+lqwg7kL/dmDFu6R3KPhC8Nd0JU8fzLcNRtfOx+Y2k4nU031MV3ak0 wzEtZXgPZrxrdI129TIetQGIYFNzb9CqXbC0Y5OFuk6GHZrm81UjBP3TkDzr54q/JLyk ckUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LhwkjHo9; 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 s18-20020a632c12000000b005579d6bdf7asi3653399pgs.733.2023.06.26.01.23.42; Mon, 26 Jun 2023 01:23:54 -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=LhwkjHo9; 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 S230073AbjFZIJl (ORCPT + 99 others); Mon, 26 Jun 2023 04:09:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbjFZIJj (ORCPT ); Mon, 26 Jun 2023 04:09:39 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CB371B6 for ; Mon, 26 Jun 2023 01:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687766937; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KqoKmhBlTtHVnB8gm1nDpTAgK/1vm8kZHpYD3t91RRo=; b=LhwkjHo9UilqMmjQbHQwGCRLEWaxs/Grh5nL3514jwVCG0ZT21PON6uYwxi60J2AfJuKIq U1JLEK/mYO8bbuq3G1UzZlJjpsI85AtBC1+eyUzp1JKlPfc81AZAWUDXn7j6suMO32LDSt bi5QWWbsAhveNpG+BdSwM2CdhE4ZEAc= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-132-geUHAD2JMWS4EaCL9rP_iQ-1; Mon, 26 Jun 2023 04:08:55 -0400 X-MC-Unique: geUHAD2JMWS4EaCL9rP_iQ-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-313c930ee0eso961619f8f.0 for ; Mon, 26 Jun 2023 01:08:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687766934; x=1690358934; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KqoKmhBlTtHVnB8gm1nDpTAgK/1vm8kZHpYD3t91RRo=; b=BWUxQpnnf6DOMJhKGxJnllTcjkBeCXJs5u4l9TjNfPSmHx8SziDGcPCZGdivRqAtNC TP1gtJCeo8Z+lxKFm4+Jeo6005Zv38n37S3eAakXcG8jYo48vKVGLO0DpUJ4HtGBfsRP OLjG1U+qjiesDCoR0nuoEjYDaDkhdDxCCUy/bWMZbmWML9FUPZeOECifHLQ9LiyIZdB9 ywRDGJ+IlSuA8i//0PHWvwPx3ZXdU5xwtIolXvuqBCIftUOLT5EXuSfMjHk2IdACKxrf 100uPqQGar825XqD+fmaFD8vh7t0V4oc/044tFXDXMj1PPxFjxOfX4y/R0xhEBgaMa7H t+2A== X-Gm-Message-State: AC+VfDxVgWeqFBJ+eD4FxGhEK2CSEd8imhXuj//9vjUK+lMLGEGPe39X K84XnsH61BTjbovEqwy5VRHzTgt2lkkSeNLzFacCVT1yXnsT/2qMoWX9ewPALEDNMKsGFsOj7gR Jp6UGr/1bHOITklYaHvUuwRHV X-Received: by 2002:a05:6000:184:b0:309:1532:8287 with SMTP id p4-20020a056000018400b0030915328287mr7714295wrx.19.1687766933841; Mon, 26 Jun 2023 01:08:53 -0700 (PDT) X-Received: by 2002:a05:6000:184:b0:309:1532:8287 with SMTP id p4-20020a056000018400b0030915328287mr7714271wrx.19.1687766933528; Mon, 26 Jun 2023 01:08:53 -0700 (PDT) Received: from ?IPV6:2003:cb:c74b:7300:2ef6:6cd6:703c:e498? (p200300cbc74b73002ef66cd6703ce498.dip0.t-ipconnect.de. [2003:cb:c74b:7300:2ef6:6cd6:703c:e498]) by smtp.gmail.com with ESMTPSA id v10-20020a5d590a000000b002fda1b12a0bsm6643196wrd.2.2023.06.26.01.08.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jun 2023 01:08:52 -0700 (PDT) Message-ID: Date: Mon, 26 Jun 2023 10:08:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v3 6/8] mm/gup: Retire follow_hugetlb_page() Content-Language: en-US To: Peter Xu , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Lorenzo Stoakes , John Hubbard , Andrew Morton , Mike Rapoport , Yang Shi , Andrea Arcangeli , Vlastimil Babka , "Kirill A . Shutemov" , James Houghton , Matthew Wilcox , Mike Kravetz , Hugh Dickins , Jason Gunthorpe References: <20230623142936.268456-1-peterx@redhat.com> <20230623142936.268456-7-peterx@redhat.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20230623142936.268456-7-peterx@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 23.06.23 16:29, 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(). > > Tweak misc comments to reflect reality of follow_hugetlb_page()'s removal. > > Signed-off-by: Peter Xu > --- > fs/userfaultfd.c | 2 +- > include/linux/hugetlb.h | 12 --- > mm/gup.c | 19 ---- > mm/hugetlb.c | 224 ---------------------------------------- > 4 files changed, 1 insertion(+), 256 deletions(-) Acked-by: David Hildenbrand -- Cheers, David / dhildenb