Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23878294rwd; Sat, 1 Jul 2023 08:39:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlEUir5Fo/bSUBKj7BiuxPLv1A70WR3oFviQCGqLgdx7OAk+u0h+U7P5MQTcuVwhjgBpMq3G X-Received: by 2002:a17:902:d501:b0:1b2:676d:1143 with SMTP id b1-20020a170902d50100b001b2676d1143mr9338015plg.15.1688225985183; Sat, 01 Jul 2023 08:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688225985; cv=none; d=google.com; s=arc-20160816; b=OWg8xusOOYfy4MxZ/J7I4kCdrhFaC3BFXkZ2X1YdNAew7BW7qAlqhd8pte6jMFyTU7 /AOxt/94iM3XkO0zN8mUb0rTCRldW7OvwwUFBQuCPrg5UVmYY3WgAFohLHPcXR6r9XkL ep5sz/zwxPJvBJ0v1XVQexGQRD8NG3P07wOLJ0gvGikvxnIfNHjj/+2qLydTeTeLytNx nYKrcie5oHD7HBVS6eqi3ZOCnfFH+DzmTEZ071eTbWkX1Bhwcmc1CTqXuhcuiq0eoKnq 9XT4vbfBzE2aOjJW0rCQuksBMYzon+eoqEVers4JG7pI0gWD4T5uzU8NzUxlkEAT3NZx k9Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mQ8pDj9XRWQTj8dc+gzlxW0IUFnmUUteg8hky6OW2+A=; fh=jzEX3Z5W1EyX7QKyR7mSHCrLjlSGKcSoez6FJVPY2xk=; b=p2fmXVgjzPqAqIQdS9V8bczWKcI9w8YBF8zcDGziOHEQJnjC7QticE30yJZPyldP9Z 5okvpE9eoBuRQKSeEufMktrRlIinxCqIyRSnKhtw3eLjFzNvq/ESn3bJ/XaxCIza7p/x wJjFDP1F/+S3XcggHZ/wFLfsg1i28WdGYfHqd+APkH6uatG36XipZ/kYenElBPe9oEoQ h7YNQ+PL3kzRq2/K1pEaXFKliFHMsW4pJ3HilGwcCPrTSs3jTTSjYdWc5qHRFCJ2wIaA 986nb+dDvc2lRIcUBzRX++BXFbqGkxbAaDetDTvRnR8pAiA/t0Jrd43FYcFr6kB8FyTI JGNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Us34vC4H; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a170902e89000b001b81a112f9bsi9777022plg.586.2023.07.01.08.39.30; Sat, 01 Jul 2023 08:39:45 -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=@infradead.org header.s=bombadil.20210309 header.b=Us34vC4H; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbjGAPVu (ORCPT + 99 others); Sat, 1 Jul 2023 11:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjGAPVt (ORCPT ); Sat, 1 Jul 2023 11:21:49 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C1258F; Sat, 1 Jul 2023 08:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=mQ8pDj9XRWQTj8dc+gzlxW0IUFnmUUteg8hky6OW2+A=; b=Us34vC4HP67mjiMUiKh6VrSyH0 ded25ncA3eoTn+frDF1dDRJIZ1kdH7u8edxIE4mpifyz19uxbsVRWljIYQkav4Lj5G43GQQMojcQC NSzzNLlaUb0LYvbXBf2UiikjqDUm5bzgPuBTfDaw1lgEJyPNkWnCu5fR9zRUnl1NIfwZMeB8J8f0p 2pr8jD5GHT6NUZTz6duseyRpbLKPdWp5KnwK7rJsJ0blU8CAmciwSBU/0/cCBbPanzuOLiRnQdb5O j6O9OnjSlkUef32GVQq26ZEobj9Jb80gINtvV6wIdR2hbiPcU+b0m1ermvcxdSX3YMWJyr17PN1if LB47EHeg==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qFcPb-006DjH-02; Sat, 01 Jul 2023 15:21:23 +0000 Message-ID: <68a9b3aa-d064-ed6a-2bcd-9423eb4f595c@infradead.org> Date: Sat, 1 Jul 2023 08:21:20 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2] Documentation/mm: Add information about kmap_local_folio() Content-Language: en-US To: "Fabio M. De Francesco" , Jonathan Corbet , Andrew Morton , "Mike Rapoport (IBM)" , Deming Wang , Ira Weiny , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Catalin Marinas , Matthew Wilcox , Mike Rapoport , Peter Collingbourne , Peter Zijlstra , Sebastian Andrzej Siewior , Thomas Gleixner , Vlastimil Babka , Will Deacon References: <20230701142041.9992-1-fmdefrancesco@gmail.com> From: Randy Dunlap In-Reply-To: <20230701142041.9992-1-fmdefrancesco@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 7/1/23 07:19, Fabio M. De Francesco wrote: > > v1->v2: I thought to Cc everybody but Andrew :-( Sorry, fixed. > Andrew, can you please take this patch through your tree? > > Documentation/mm/highmem.rst | 27 +++++++++++++++------------ > 1 file changed, 15 insertions(+), 12 deletions(-) > > diff --git a/Documentation/mm/highmem.rst b/Documentation/mm/highmem.rst > index c964e0848702..bb9584f167a6 100644 > --- a/Documentation/mm/highmem.rst > +++ b/Documentation/mm/highmem.rst > @@ -51,11 +51,14 @@ Temporary Virtual Mappings > The kernel contains several ways of creating temporary mappings. The following > list shows them in order of preference of use. > > -* kmap_local_page(). This function is used to require short term mappings. > - It can be invoked from any context (including interrupts) but the mappings > - can only be used in the context which acquired them. > - > - This function should always be used, whereas kmap_atomic() and kmap() have > +* kmap_local_page(), kmap_local_folio() - These functions are used to require acquire ? > + short term mappings. They can be invoked from any context (including > + interrupts) but the mappings can only be used in the context which acquired > + them. The only differences between them consist in the first taking a pointer > + to a struct page and the second taking a pointer to struct folio and the byte > + offset within the folio which identifies the page. -- ~Randy