Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24291724rwd; Sat, 1 Jul 2023 17:03:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlErH63l51KyFYodojvbyA2p9+uqlgg0mw+NxiHPy2Yw4BV/38Z1si31fLs5P6JLd9I6J9A9 X-Received: by 2002:a05:6870:7b8d:b0:1aa:2250:d2fb with SMTP id jf13-20020a0568707b8d00b001aa2250d2fbmr8361422oab.38.1688256200374; Sat, 01 Jul 2023 17:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688256200; cv=none; d=google.com; s=arc-20160816; b=1J929adTvg6PTV1mSGMMx584x/2Vflbn77PSsihkDcpq3cBNc8E6NVWa+xY8JT+BK6 SYIJkq8MxUWX8LP1pdWDw2VhfZwEyqdfjz6IIk81TDm4DHWw91w25Zihi04ysIa6+m0Y KYYYK5GpjLaXIXEei/UHY2uW1Fga46nuQqmrRvZkzD4VnnblfKia/WwN3m+pEKMYiusZ FOwJEHiMpVe1DrnThN2uIrpEk6+Z6lpHK/e0TxDffPqJYuQcSClda8pZ3wbt+IVQRG7t oovkg5Us2zml3vtAWUTnZE92W7DMI2SgHO+GJAQFi0EOkrxUw1R+rLg7RCEbvfStX0rW mtiA== 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=PCx2QFqb52a7urpGxQBuPxQ1h1DO4tHuNtmm/dPKApw=; fh=8LAIBxjDRRRBv64IeT9PNr9Sk1sEZPVu+T8mvJPBXJY=; b=nBdfSmX9hOWPKbMK7dGFY31iop0646K1gLw9agkk+vKWYQxcXZmQOqTGC9QadL8X1B YjYQmI1jzrcZCRdTWchidivfZevYV1bZl1JfHodPjvLrRk0DFzN9BqwiOml+CA+uYT2n DTZ6CLhpEVeoHMhckjVNcnewrCka9L+fB2p279nbo3/aWlQf/D9StVPE9zptiGxvWkub Gwr4UI5OhBCd9YOwENWYEBupdihHho0Qqm8iClTtG3tKGj33BNIqoabfWWHX8f2k4s0u xtQRQSlHBgWv661YSEja1AIwf1kCkvRuI65zGEQDSsfG06UbdNg8Et2+gKuN+c0rs1nK PXKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=KSxhLz9Z; 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 oo4-20020a17090b1c8400b00262e629f543si14181685pjb.80.2023.07.01.17.03.08; Sat, 01 Jul 2023 17:03:20 -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=KSxhLz9Z; 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 S229816AbjGAX7V (ORCPT + 99 others); Sat, 1 Jul 2023 19:59:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjGAX7U (ORCPT ); Sat, 1 Jul 2023 19:59:20 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FE311725; Sat, 1 Jul 2023 16:59:19 -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=PCx2QFqb52a7urpGxQBuPxQ1h1DO4tHuNtmm/dPKApw=; b=KSxhLz9ZjLeJuJ3RMQ43qS02l8 IVasIAOOE6qONvuqbZVf+ewEUaAn1X8kuatdZtYP0QdgFS4sQgCP6PXBJH0zyziGjK5UNiUOxy4zg ZducdnyS4rkgG7HmHy4A6/2Ghc2Lo7MuIlbqr7IkKXhPr6cFnR9bwer3iHqfG6PXbEJmqphiKIKQJ 6nKI7d1Suvkh7cBEv/5bvDFNCB4dsx+UGKAWgdA06Sn+rv5fDJrpt0qmCxaadzfThlIxtC/BZ+tuA leWmdCwjZBEZT+KvkXA/KOIRNI4PpLtjS+bPbX3FUEHSFvvZ8vBjhvMvdIyAu0SCKmGNYMPPF2xjr kx5lqpdg==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qFkUb-006q3K-1C; Sat, 01 Jul 2023 23:59:05 +0000 Message-ID: <970a881a-cdaf-2568-657a-3b93b0273338@infradead.org> Date: Sat, 1 Jul 2023 16:59:04 -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: Matthew Wilcox Cc: "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, Catalin Marinas , Mike Rapoport , Peter Collingbourne , Peter Zijlstra , Sebastian Andrzej Siewior , Thomas Gleixner , Vlastimil Babka , Will Deacon References: <20230701142041.9992-1-fmdefrancesco@gmail.com> <68a9b3aa-d064-ed6a-2bcd-9423eb4f595c@infradead.org> From: Randy Dunlap In-Reply-To: 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 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 16:54, Matthew Wilcox wrote: > On Sat, Jul 01, 2023 at 08:21:20AM -0700, Randy Dunlap wrote: >>> -* 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 ? > > "create" might be better? Yes, that's good. >>> + 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 -- ~Randy