Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24302541rwd; Sat, 1 Jul 2023 17:17:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlGuwA9T74O41OVkyq/tS3ReP16UjdT9zzNvlqmh14XrfQ5NI2Je87Xx3CdHeyV9fBaR8n2K X-Received: by 2002:a17:90a:6687:b0:260:a8da:536c with SMTP id m7-20020a17090a668700b00260a8da536cmr9943437pjj.23.1688257043934; Sat, 01 Jul 2023 17:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688257043; cv=none; d=google.com; s=arc-20160816; b=ShmCk7PRRN08qRcSCIuTdhd+mV51HBpvx+ysxUtT8NBNFwu7ltTgXaCJwVp/C2wXWc KUFzY05lHigkxEvObtesh6rZe1T+KtpQei7q7F12qLqO9xAXapi/NchPMDgnVa4kqrlo Cm/j8YNJDimG59S8pQYn+2CrnT6J5yMvVDsNPZ1BE4ds9gSfl4q0AF5czEWeifHK6mLZ PqT3M6/LPZbmaywbFQmPYfXGHMwuWcVIizD/zjXvyygRP6zgFIEHE1R8NTAktBkKX+ua Ow/BwogN70XYR9WoXYRsYUUSZqrbTFOxCqs2sZiUMMrXSTnA6hwCAi/DSoryOsdPlGrd Avyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EGbpfu+7zj9QDynkv2BuJJyCce8y05I7B9YU353+MuM=; fh=VDcW+HfrIcjnIxgiTQ3AR7FuSaSU3uBjs2hcflcDAZA=; b=vBzINTQZ8uynNNKcRtIn+9/yihMhVnJ3jlCUG4vgyYZgXjzFOGPDwE13f6SySorIE0 q0IZIjwaCh42gOhaQyTwDeup3e4b0NQk4+jpmpf2zPh+392luFuwD/J3ckE7VZkTrIud TDzazXUaovsbD40WMnNaGxB3akFPQPJIA5rGbsA2ZSwPSAmeuAvwwPwh+apUMcEwBfI3 OEUkps3GPSRkNE4GSHQRnhaPgFBF2XV2c6K3GPCAItzTcaqRKWrv8PaMMduoTY5i4P00 7J1Ra4FZpzDO8YPZVi5OEzM9CkYaBYsL/q2zISxTVLRzUBmDtRIL6GBMXpnB7dw3yE8v mqfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ke43e7Em; 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 l5-20020a654485000000b0055398c3184esi15484355pgq.6.2023.07.01.17.17.08; Sat, 01 Jul 2023 17:17:23 -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=casper.20170209 header.b=ke43e7Em; 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 S229786AbjGAXzL (ORCPT + 99 others); Sat, 1 Jul 2023 19:55:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjGAXzK (ORCPT ); Sat, 1 Jul 2023 19:55:10 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC6B71738; Sat, 1 Jul 2023 16:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EGbpfu+7zj9QDynkv2BuJJyCce8y05I7B9YU353+MuM=; b=ke43e7Emdmpw75iq6GyjCOLhBq lbqUFx5ia3hlZ4byhRDIiTiY3cXI/HFBsj7uPv4EL7S4oEp/tBzIHve1uND8bcyzy7ueAKH0yQ1E+ TeSlZBbXStGlzcrB1HbF2ahyhwAKFimZG3u17XLP4gm16pXonSUQXvW8V697JBHuRiUjzJdmzHI29 5TvNcQrquOs3VgAQvCsuh9QeNxJJHNOrL2P91RJVMBtS+Hd4mkewOF+B8JXfGYqoPJv7xRlp804yO HpusuG3s19sIX7zAMuT/RWYnzACVP5M5X20DYCQtQYPmrf1Xbs9CWqB/hOe/e2soD35VgO9cKhUIa YzHO4g3w==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qFkQC-006xKE-H1; Sat, 01 Jul 2023 23:54:32 +0000 Date: Sun, 2 Jul 2023 00:54:32 +0100 From: Matthew Wilcox To: Randy Dunlap 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 Subject: Re: [PATCH v2] Documentation/mm: Add information about kmap_local_folio() Message-ID: References: <20230701142041.9992-1-fmdefrancesco@gmail.com> <68a9b3aa-d064-ed6a-2bcd-9423eb4f595c@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68a9b3aa-d064-ed6a-2bcd-9423eb4f595c@infradead.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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? > > + 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