Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp838081rwe; Thu, 25 Aug 2022 09:59:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR7qcuN4At217TDDz9Pygp7X9t5VGag5RQWkjJFTN2VvDp7tpK38yHbw/anEBL6LEgwSMYqH X-Received: by 2002:a05:6a00:1a14:b0:52d:5fee:d46b with SMTP id g20-20020a056a001a1400b0052d5feed46bmr5117723pfv.82.1661446789857; Thu, 25 Aug 2022 09:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661446789; cv=none; d=google.com; s=arc-20160816; b=b2evv1NHlZCsiQ99G8FSVn6ve3jlFS554xMGDxBoSwk9ErTVl5V1Iary6X1Vyu0MOk Lv5iJFBzj/7YebugrymkMq8DFIeQSyAFocN0MX7aoiIlITkL4OnBkGpWUu4GSALhosh3 VcVgF+jxw1EhAd7CFuZE8ZfF0Lnf1H803AV99yBZtStEnZa5n9APCMc43KDdycFt6+zr t2cDtxOfXhk/Q29FP4wxOeIWTfiSkdX+znMdqHTGz7mOEsPYeGgDxUjP8/uWG6Flwejs hb+apAEno13oO53iEmj2Y341orXzILJowFxNA62xCmFLuzMn1QlPxLZzDFXQGohezMkm Gt2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UAAidR6I/yg1Bp+qCE+8MWMgwSzA8AbWWpn7RN6psAA=; b=p+gTeJramoeBwoJUOYJCORxgjnHgTPK7rXlM4iNJU6bHSHxVCDopEr3MRXBR+rCiV3 TGDp1iKJxsh9ZADD4unDoC5Eup050iVeJLeEdaWClpfW03ojC5fNyASDyIjMPQhxFy9N sF0gN0NwjsPuukMpQeMTtYy0ZgL4iXGEkVEuGniwMoDw4eOPAs3iN3rn3p/9n4zKGFzN o9LMrVQKwTFjpBrRDYRpBYowHaT7UxbNoxMClK7iI4AYYblt5wx+Bc/AsiHM8R+jGqGM IepRt9bRalcYydY7C9OJfVvR35lHzFVIJdmBmN9qmyz80n5ltQJQpY44QhS2gqn1Dee9 4nFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MN7EvOMr; 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 p20-20020a635b14000000b00428bf1f3c67si18321122pgb.861.2022.08.25.09.59.38; Thu, 25 Aug 2022 09:59:49 -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=MN7EvOMr; 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 S243443AbiHYQuM (ORCPT + 99 others); Thu, 25 Aug 2022 12:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243197AbiHYQtf (ORCPT ); Thu, 25 Aug 2022 12:49:35 -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 91A63BFA9D for ; Thu, 25 Aug 2022 09:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661446029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=UAAidR6I/yg1Bp+qCE+8MWMgwSzA8AbWWpn7RN6psAA=; b=MN7EvOMrGojfJC9ag+YKHc0FSf46n5SnY3njfidKgz67H3k2VAid55JMyfgdeopvL7rwcY XHJweAbsoFqApkD3lcsA/+uxSvK94E/whpb2cNIDOrFEvU7il9EJ2x/Ce/8GHrotbYNFpN ueDt8hf51bCemQAq4eH5I0ElnHpNGWg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-475-PQYNI7mVO2OSnKqtZZJPGw-1; Thu, 25 Aug 2022 12:47:04 -0400 X-MC-Unique: PQYNI7mVO2OSnKqtZZJPGw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A8BB3185A7B2; Thu, 25 Aug 2022 16:47:03 +0000 (UTC) Received: from t480s.fritz.box (unknown [10.39.192.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E90F492C3B; Thu, 25 Aug 2022 16:47:01 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , Andrew Morton , Mel Gorman , Jason Gunthorpe , John Hubbard , "Matthew Wilcox (Oracle)" , Andrea Arcangeli , Hugh Dickins , Peter Xu Subject: [PATCH v1 0/3] mm: minor cleanups around NUMA hinting Date: Thu, 25 Aug 2022 18:46:56 +0200 Message-Id: <20220825164659.89824-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, 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 Working on some GUP cleanups (e.g., getting rid of some FOLL_ flags) and preparing for other GUP changes (getting rid of FOLL_FORCE|FOLL_WRITE for for taking a R/O longterm pin), this is something I can easily send out independently. Get rid of FOLL_NUMA, allow FOLL_FORCE access to PROT_NONE mapped pages in GUP-fast, and fixup some documentation around NUMA hinting. Cc: Andrew Morton Cc: Mel Gorman Cc: Jason Gunthorpe Cc: John Hubbard Cc: "Matthew Wilcox (Oracle)" Cc: Andrea Arcangeli Cc: Hugh Dickins Cc: Peter Xu David Hildenbrand (3): mm/gup: replace FOLL_NUMA by gup_can_follow_protnone() mm/gup: use gup_can_follow_protnone() also in GUP-fast mm: fixup documentation regarding pte_numa() and PROT_NUMA include/linux/mm.h | 16 +++++++++++++++- include/linux/mm_types.h | 12 ++++++------ mm/gup.c | 26 +++++--------------------- mm/huge_memory.c | 2 +- 4 files changed, 27 insertions(+), 29 deletions(-) -- 2.37.1