From patchwork Mon Dec 11 15:56:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 13487471 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 E74FEC4167B for ; Mon, 11 Dec 2023 15:58:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 82E596B0135; Mon, 11 Dec 2023 10:58:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E0686B0136; Mon, 11 Dec 2023 10:58:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6066B6B0137; Mon, 11 Dec 2023 10:58:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 4CD0C6B0135 for ; Mon, 11 Dec 2023 10:58:26 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 24036C0757 for ; Mon, 11 Dec 2023 15:58:26 +0000 (UTC) X-FDA: 81554994612.01.EAFDE14 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf26.hostedemail.com (Postfix) with ESMTP id 5D6E314001C for ; Mon, 11 Dec 2023 15:58:24 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=A+xEM+zn; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf26.hostedemail.com: domain of david@redhat.com designates 170.10.133.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=1702310304; 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:in-reply-to:references:references:dkim-signature; bh=j7yPJXNweA3+MouJWc5Ro2+qKjmp/wEHVCvW0WWVjak=; b=C8rliuZ2LbtMnqLAnvoEdFGRQfMYTq+wfF88U+RJ37jA/pCyK8RKPFCWsLqG98RGbtdWJo Lh+vxWCFMGd4yRJ6G8mGNgSI5eT4ALkOSGzs0aF/gh7HRCXeSqRL3zP1QdSM0XDqOmwZ9H rCGMhuqjVvlBDCl2T6xtkx64f/9WNSo= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=A+xEM+zn; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf26.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702310304; a=rsa-sha256; cv=none; b=gGkRGfs0fB4yDOWisLQM7ywv9WlNtw2jPCwI8nA9oEPUOXNn6mJCYUUdnN4BnUa7T/n004 0MiviHgj1DLbI0itgrqDgQVxo2gIFn8SNwuYceF/9OMh6XLxdRlYcboMncVkBu5K2V4Yzw iD78MLyl0KncPVp/tYpubWt8f1pDJYA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702310303; 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: in-reply-to:in-reply-to:references:references; bh=j7yPJXNweA3+MouJWc5Ro2+qKjmp/wEHVCvW0WWVjak=; b=A+xEM+znlIJIEusdJBZKudn48CMQkozHoy2tXYbfcGXHyS6RG/+jSdqSZPuVyDoDwm3Zch ya22msoICM4rJk+TTpwsJYkDMtyLkCHj5UpeXCL5Rrf86YZo9wTlR9C9sRSvrJRRG3I9gM nYDdOtAjlYxIdYPUzOVaNoig9UNJNhQ= 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-312-4EKUpxx8O7a6a8BNS2xAZA-1; Mon, 11 Dec 2023 10:58:17 -0500 X-MC-Unique: 4EKUpxx8O7a6a8BNS2xAZA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (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 07746848A6F; Mon, 11 Dec 2023 15:58:16 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.192.166]) by smtp.corp.redhat.com (Postfix) with ESMTP id 87CDF1121306; Mon, 11 Dec 2023 15:58:13 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , Andrew Morton , "Matthew Wilcox (Oracle)" , Hugh Dickins , Ryan Roberts , Yin Fengwei , Mike Kravetz , Muchun Song , Peter Xu Subject: [PATCH v1 31/39] Documentation: stop referring to page_remove_rmap() Date: Mon, 11 Dec 2023 16:56:44 +0100 Message-ID: <20231211155652.131054-32-david@redhat.com> In-Reply-To: <20231211155652.131054-1-david@redhat.com> References: <20231211155652.131054-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Rspamd-Queue-Id: 5D6E314001C X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 96sqs4b84urmgdkbwzxfb5dcjnajamd8 X-HE-Tag: 1702310304-486406 X-HE-Meta: U2FsdGVkX1/P9JJmyxVaAwpj/dwcwQUniLNpZ8EgR3mKVhDZmhHAWP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bkc1kMB0fFKaFDryb8RNBelwW2PboyeGA0SCEaG56z63GRChdPm8vldJGuk59QUzYNRIF0EHfj+H8c2eQ== 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: List-Subscribe: List-Unsubscribe: Refer to folio_remove_rmap_*() instaed. Signed-off-by: David Hildenbrand --- Documentation/mm/transhuge.rst | 2 +- Documentation/mm/unevictable-lru.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/mm/transhuge.rst b/Documentation/mm/transhuge.rst index 9a607059ea11..cf81272a6b8b 100644 --- a/Documentation/mm/transhuge.rst +++ b/Documentation/mm/transhuge.rst @@ -156,7 +156,7 @@ Partial unmap and deferred_split_folio() Unmapping part of THP (with munmap() or other way) is not going to free memory immediately. Instead, we detect that a subpage of THP is not in use -in page_remove_rmap() and queue the THP for splitting if memory pressure +in folio_remove_rmap_*() and queue the THP for splitting if memory pressure comes. Splitting will free up unused subpages. Splitting the page right away is not an option due to locking context in diff --git a/Documentation/mm/unevictable-lru.rst b/Documentation/mm/unevictable-lru.rst index 67f1338440a5..b6a07a26b10d 100644 --- a/Documentation/mm/unevictable-lru.rst +++ b/Documentation/mm/unevictable-lru.rst @@ -486,7 +486,7 @@ munlock the pages if we're removing the last VM_LOCKED VMA that maps the pages. Before the unevictable/mlock changes, mlocking did not mark the pages in any way, so unmapping them required no processing. -For each PTE (or PMD) being unmapped from a VMA, page_remove_rmap() calls +For each PTE (or PMD) being unmapped from a VMA, folio_remove_rmap_*() calls munlock_vma_folio(), which calls munlock_folio() when the VMA is VM_LOCKED (unless it was a PTE mapping of a part of a transparent huge page). @@ -511,7 +511,7 @@ userspace; truncation even unmaps and deletes any private anonymous pages which had been Copied-On-Write from the file pages now being truncated. Mlocked pages can be munlocked and deleted in this way: like with munmap(), -for each PTE (or PMD) being unmapped from a VMA, page_remove_rmap() calls +for each PTE (or PMD) being unmapped from a VMA, folio_remove_rmap_*() calls munlock_vma_folio(), which calls munlock_folio() when the VMA is VM_LOCKED (unless it was a PTE mapping of a part of a transparent huge page).