Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2044182lqz; Tue, 2 Apr 2024 05:56:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJlHl/S/3J1Yg8oslmDtOALQH/7bTE+DQWlpOByAnEwepYHx8FDRlAyOrvFgCjxhMmqgYq9Q4T8bKhzhgi9aQJRG+bOPcuEN8DYNAUSA== X-Google-Smtp-Source: AGHT+IGnBeDxTdKchAXxvl08zH1XWlEGZgVX2w8yxHQwAoMhdnAWycAUw39RNXbIglb9KMsPQ+j7 X-Received: by 2002:a05:620a:6292:b0:78b:e33a:273 with SMTP id ov18-20020a05620a629200b0078be33a0273mr7759117qkn.38.1712062596584; Tue, 02 Apr 2024 05:56:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712062596; cv=pass; d=google.com; s=arc-20160816; b=qJFKPvDlKhUxBBbVmChgipvrVC9YqMV3EwSHwZ8/XpibU1RAI6xHBH9DCHbleLNu5H 8ss+cDa3tEzv5uufIi/Ug9MRX6S4eA4CTYUVICzqwPHlRD5bTFn1Le5g1WvAAvzPAw7u ta4dOiXGm8VlwrNN2iotJ2HXIgyPFujHjJ33y6bVSMR6xVv42Jz+/zNBO38Y14TfJNBq kCNw2irqFTASqF5KMKiFlUmFi8+QsrzYrcYLlCyMpWG+HaYyPurPU/F/2hPGDZYeL8d4 qK6DK9XxHf+lXEDlH/53qUC3BkwuidMwSFMkce4LQCmuP2Eu8QDm9CUJVS4Ka1m71W4G mmyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=mcxjCOywRtLdiEcHC2fGLUZpoWNnKmQE4MNGQaUK4kg=; fh=8/N849CJvsEZWn4Q0S0LsAGVs8bnTEdAgMqVNRZ6mmk=; b=xDGT8Uu+AQO5uyGlmlu0PnAdY99MhEsWXI0UUa7U2tTnHcHea2dnfiLJ2akX5cs12M nyq/Agi1hSPv8F4mwW23q8XeN7xmwyWWR0KKf3fw0hN1adrmfKLr8VEMUMEhpH5XOeqa gMQw8TQEXI4aYjqasUPWuwfRCPtOcBdfMTXu0ePm7dmZiNBeWJPu1lRvy0xkXuZBPNTW LE0qKFDoL8M9szgE+LMeStvVCOoazQ45S4hOMS5bUCfnhKG8PKqHnRStg2tYYzvnGCG/ vmVqPIeiABtlC+D8uB59JYh+YwIsH+EFt0M+KFcjxzqutkO7k8TlX3SM0aflybFePoed k/1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EieT6j0N; 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-127983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127983-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bn51-20020a05620a2af300b00789f7d612d7si11824009qkb.608.2024.04.02.05.56.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 05:56:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EieT6j0N; 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-127983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127983-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 258251C23358 for ; Tue, 2 Apr 2024 12:56:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E7DF57F7ED; Tue, 2 Apr 2024 12:56:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EieT6j0N" 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 9919B8289D for ; Tue, 2 Apr 2024 12:55:58 +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=1712062560; cv=none; b=HGb93iajft9aP8WD+k/k3sLRHvDE2gL+sfO4W+U6vvevIIToXLLWpubtoS3PVhoqn9aLkNl5ZP1aWeDP0+frghI7tr+JXPFgn+UukJHhjUlexLXnRN3W4XwjW/KuqogaoQJXMtlqJEv5I8JTM1PVEphz1z7y+ZeG2pfsmHsVTGk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712062560; c=relaxed/simple; bh=CnPlyaDBkHALGVASURDaFj0khPVMCDAmwQaSX2f3JUg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YHWYOON4SbXxKRCrwfalL+YLExb2yi07LqsSnsL6UAx/EEaAk2YUcmP5nJVY6v0mvWZsumWpVgYE96LccaXdYcIcPDckIVKI+7WgM1mvpiz0gRD2/bNM/sTl/HHZ+Br0OFK6iG1wFnQzEbvIy65hmHT80zxyUucQ6U+8BP0uzUA= 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=EieT6j0N; 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=1712062557; 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=mcxjCOywRtLdiEcHC2fGLUZpoWNnKmQE4MNGQaUK4kg=; b=EieT6j0NsTqBy7e3As58hmEOFnkqEGXnpHDuCYqJc9/7jh38hAV+2GZyQQsdIZhT/HFmcC UsdTaF/1qrf9+IXEFgl21SN95tXDTGBoLrzin4DlmwZPGThcEgd/1gDXPUaKABNNK0OHF/ ZUCBi6DP5VwMPrZz33WTF1AoHbE54vc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-203-jrB5cRd5NSepbRcVx10PBw-1; Tue, 02 Apr 2024 08:55:43 -0400 X-MC-Unique: jrB5cRd5NSepbRcVx10PBw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 57030881F00; Tue, 2 Apr 2024 12:55:42 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.194.247]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3917D3C21; Tue, 2 Apr 2024 12:55:37 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , Andrew Morton , Mike Rapoport , Jason Gunthorpe , John Hubbard , Peter Xu , linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, x86@kernel.org Subject: [PATCH v1 0/3] mm/gup: consistently call it GUP-fast Date: Tue, 2 Apr 2024 14:55:13 +0200 Message-ID: <20240402125516.223131-1-david@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 Some cleanups around function names, comments and the config option of "GUP-fast" -- GUP without "lock" safety belts on. With this cleanup it's easy to judge which functions are GUP-fast specific. We now consistently call it "GUP-fast", avoiding mixing it with "fast GUP", "lockless", or simply "gup" (which I always considered confusing in the ode). So the magic now happens in functions that contain "gup_fast", whereby gup_fast() is the entry point into that magic. Comments consistently reference either "GUP-fast" or "gup_fast()". Based on mm-unstable from today. I won't CC arch maintainers, but only arch mailing lists, to reduce noise. Tested on x86_64, cross compiled on a bunch of archs. RFC -> v1: * Rebased on latest mm/mm-unstable * "mm/gup: consistently name GUP-fast functions" -> "internal_get_user_pages_fast()" -> "gup_fast_fallback()" -> "undo_dev_pagemap()" -> "gup_fast_undo_dev_pagemap()" -> Fixup a bunch more comments * "mm/treewide: rename CONFIG_HAVE_FAST_GUP to CONFIG_HAVE_GUP_FAST" -> Take care of RISCV Cc: Andrew Morton Cc: Mike Rapoport (IBM) Cc: Jason Gunthorpe Cc: John Hubbard Cc: Peter Xu Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: loongarch@lists.linux.dev Cc: linux-mips@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-s390@vger.kernel.org Cc: linux-sh@vger.kernel.org Cc: linux-mm@kvack.org Cc: linux-perf-users@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org Cc: linux-riscv@lists.infradead.org Cc: x86@kernel.org David Hildenbrand (3): mm/gup: consistently name GUP-fast functions mm/treewide: rename CONFIG_HAVE_FAST_GUP to CONFIG_HAVE_GUP_FAST mm: use "GUP-fast" instead "fast GUP" in remaining comments arch/arm/Kconfig | 2 +- arch/arm64/Kconfig | 2 +- arch/loongarch/Kconfig | 2 +- arch/mips/Kconfig | 2 +- arch/powerpc/Kconfig | 2 +- arch/riscv/Kconfig | 2 +- arch/s390/Kconfig | 2 +- arch/sh/Kconfig | 2 +- arch/x86/Kconfig | 2 +- include/linux/rmap.h | 8 +- kernel/events/core.c | 4 +- mm/Kconfig | 2 +- mm/filemap.c | 2 +- mm/gup.c | 215 +++++++++++++++++++++-------------------- mm/internal.h | 2 +- mm/khugepaged.c | 2 +- 16 files changed, 127 insertions(+), 126 deletions(-) -- 2.44.0