From patchwork Thu Aug 25 16:46:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 12955082 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 285FBECAA24 for ; Thu, 25 Aug 2022 16:47:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A80B46B0074; Thu, 25 Aug 2022 12:47:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A2FDE6B0075; Thu, 25 Aug 2022 12:47:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 91FF0940007; Thu, 25 Aug 2022 12:47:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 844E86B0074 for ; Thu, 25 Aug 2022 12:47:10 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 5F968804A3 for ; Thu, 25 Aug 2022 16:47:10 +0000 (UTC) X-FDA: 79838695020.30.07FD942 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf07.hostedemail.com (Postfix) with ESMTP id 1536D4000C for ; Thu, 25 Aug 2022 16:47:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661446028; 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=M+sub5KsVPrIur9KALAM1w3O8gWOCIoyH8fytdcKw1omPzn5466xciPsZsDoFIMQ2UvjFq DjY6zygGL4smRJcexv8sgmxbCtwd75qpaAJJvi3EGos0WFUTUqzFBarRNzx4YmcIOIBkeT cLppN4TatSvA6NC6BjEBHKLVm6QOpfc= 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 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661446029; a=rsa-sha256; cv=none; b=wAf8aK3t6O+upoIV/fULz6u7okDW4xTG9wBQO9nbiu2rNjEUH8m17eAbspoYjMNl5gWwxT QpM9Xgd5JCPR6MuzMM+3sXTJ4W+4FVUxN8e5c6wZ3VaqNkkZYxMPnlV4WbHzMO7u28rV88 oc8UI/Uo56ex3DCWlHhAy8Fpr1simIY= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=M+sub5Ks; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf07.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661446029; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=UAAidR6I/yg1Bp+qCE+8MWMgwSzA8AbWWpn7RN6psAA=; b=K2qgFy3UjADVAi8ipd1UYL4Jec5ZYh79qPTst2GW1tpu5rcj067aaMBwqrn5IkQwvLBxpJ bavTEL2w4ljY6mWAJuTqyPK5zMDTrtrDjNHC9PEkoD4tyyPY6GuYh2+WGVcRGpLOH4LlfN ac0+EN/CZ8OX8O6k/SJzhC44WWOwUo8= Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=M+sub5Ks; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf07.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com X-Rspam-User: X-Rspamd-Queue-Id: 1536D4000C X-Rspamd-Server: rspam08 X-Stat-Signature: 31ff9ikwqi6q59x15zdopj5b17cdryiz X-HE-Tag: 1661446028-887051 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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(-)