Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2740734rdb; Mon, 4 Dec 2023 06:25:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRqXvkiWR+0ltalOXI8gWBB7Ww7/8jeEKusxPep83z39nw5WJQFTVG4vX71sRRNLmikyDN X-Received: by 2002:a17:90b:4c43:b0:286:818c:27a9 with SMTP id np3-20020a17090b4c4300b00286818c27a9mr3895084pjb.45.1701699910175; Mon, 04 Dec 2023 06:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701699910; cv=none; d=google.com; s=arc-20160816; b=C/h/Pw0vFE8TDf6SFxLZYY9cTTNf4zxKTa9YMmJMPTZeslSkkRQ8K+bvhmcIXkzpQw DXw1A85qh9tt5GYCaAr4rFkhNKxjdPCZvsPYi8R/6MzI/+491rguVgJ6+pcVH7M+Y821 Imsp9QJ00T7fj0UqAKGvLOclkkrvGhRRpv+yQRteSw28sbkWhwx2aJb10/ROWGS5lzic ECpgGDy4y/t/etTvJaycSkBfq4VfchO+rYnRW8rtXh80wjxgs0k+ei8Iny5sDKQgmLcQ mJvecXJmYIRhSy1gWYM9XhTXpy84IZZX5PAOV6EY9/7dbLpUGQiyi2jeT9OdRzBUCUV7 V6Rw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hz7uaUsseOxwoTHd/q5qxZ6Zu8cM7Yp8tdIii7iwU6Q=; fh=UlFXU+hKOMcm6idRzNfe3Pu+B5L1f7aeir3C6i/NWQA=; b=wC0n6mKhxzdylbIwOLSio1vQ9oCvNECFkSpq1FfDP89QqEpGh2H/ein64L8r6q5kLB Aq9gbe11JytELAHVRvPZ7bKgOVtYkTVAr3HGXjEMAM/csKSYqALMyK7TcKwmVDzLlScc io+UeoBhNSY3xF+47KlufEI52usPkNQkF8H1uUgEIZKwoCheIRlYcPsOGQqLUVJXG1/t x/M/D4M49mO2l9w4GkaszNR/OwRVodojn46Go6lulS05XHN6LOGAO7GODROL0IbCTCQn 7RXn0zl5piYyHhfvQ4xiYZ3C6IdxUaRGSqdqJB8W53S3qWTcmV2Qbv4wJ/xfrNrw0X4m kSmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="H6z3m8e/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id il15-20020a17090b164f00b0027cdee52324si2696227pjb.74.2023.12.04.06.25.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 06:25:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="H6z3m8e/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 63BAA8096A7B; Mon, 4 Dec 2023 06:25:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345085AbjLDOYn (ORCPT + 99 others); Mon, 4 Dec 2023 09:24:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345266AbjLDOYK (ORCPT ); Mon, 4 Dec 2023 09:24:10 -0500 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 7018F2105 for ; Mon, 4 Dec 2023 06:22:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701699772; 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=hz7uaUsseOxwoTHd/q5qxZ6Zu8cM7Yp8tdIii7iwU6Q=; b=H6z3m8e/e40vfDeqZdC7U3FCCiHPCMX7LDc/oO8/KuJ6P3IEOCSfj8AD039JZ2oWoKM6CB vElj8bSoXa1Y8AMgHlqOAW9bZQy/zjV2OAX7XMlngvjNB23D59wuZt8cblWG8mhNWhu1pC J62Y6ioxuGAkYXI9HPcCRgRXFTCLZL8= 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-270-2PY8J7EQOv2OTifGixg-kQ-1; Mon, 04 Dec 2023 09:22:48 -0500 X-MC-Unique: 2PY8J7EQOv2OTifGixg-kQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (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 9F0CD8314FB; Mon, 4 Dec 2023 14:22:47 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.195.87]) by smtp.corp.redhat.com (Postfix) with ESMTP id 01FC72026D68; Mon, 4 Dec 2023 14:22:45 +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 RFC 31/39] Documentation: stop referring to page_remove_rmap() Date: Mon, 4 Dec 2023 15:21:38 +0100 Message-ID: <20231204142146.91437-32-david@redhat.com> In-Reply-To: <20231204142146.91437-1-david@redhat.com> References: <20231204142146.91437-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 04 Dec 2023 06:25:07 -0800 (PST) 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 9a607059ea11c..cf81272a6b8b6 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 67f1338440a50..b6a07a26b10d5 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). -- 2.41.0