From mboxrd@z Thu Jan 1 00:00:00 1970 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 BF218EB64DC for ; Sat, 1 Jul 2023 23:55:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AC8228E006E; Sat, 1 Jul 2023 19:55:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A774E8E0059; Sat, 1 Jul 2023 19:55:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 965A78E006E; Sat, 1 Jul 2023 19:55:16 -0400 (EDT) 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 8A79C8E0059 for ; Sat, 1 Jul 2023 19:55:16 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 501CF1406D7 for ; Sat, 1 Jul 2023 23:55:16 +0000 (UTC) X-FDA: 80964701832.20.876B49E Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf25.hostedemail.com (Postfix) with ESMTP id B826BA001F for ; Sat, 1 Jul 2023 23:55:12 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=ke43e7Em; spf=none (imf25.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688255713; 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-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=EGbpfu+7zj9QDynkv2BuJJyCce8y05I7B9YU353+MuM=; b=zM2fZ3MtZSaov7UtFOXMueBmhagwm+Cq6MPKGcsmtyR/mq9EtfvQzVTgGjovO8uSFf5Uuo aB7xnJKADQNliCndKoscDHn+6zDhBGGa96OU0UiLDVukcUyqYJ9r+reqwT6Ori+zUCp9WL EojgodSlXwPdoMCNVnVltzacCMLVfz0= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=ke43e7Em; spf=none (imf25.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688255713; a=rsa-sha256; cv=none; b=GxsNSWYTuEf4PQmJgg4lJQ3Glm54mGue7prqbkyyVxJ32gGwwlhW+pQCmLggRW2YGBOOK1 Yn4/dyyswiv3+cIzGcipiLxoRllQwoVFHvAoCkqL5IQ6UcbUosMnbrPyhJ0Kc9J3afly7e 0Nb09uP/gqDsixikjDoNX8+vcNK+Emo= 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-Rspamd-Queue-Id: B826BA001F X-Rspam-User: X-Stat-Signature: xjojm5gmsswjrc54x5bopcdyyp9q1tsp X-Rspamd-Server: rspam01 X-HE-Tag: 1688255712-483398 X-HE-Meta: U2FsdGVkX19BtgvNZhbi1SdFFH+HBWBmJmKgshpmu1UcDVwNp5nuAW0XTM9AQKfrYOaEbu+RhmgoVJLV0turrgmoqOezzF5jpylG/GaJiJq4Ap5y05n32NDL86a0aRN+4FEzJ0rP5Jukt6v1se1aM3J1x+iSqgYwT7wb7PQJ7QFvbOk4+cCsRna83z+fGjuc+dCv4/3T69QB3iCoDd4QLdaFfr8GXIoHo3Y+lFfbiLm5t44TxK7cSSTTi0BqImJ5CciSKQPaER4XyaEu+WyF/+mp9HLy4dI0JdzyZZVMpevx2EUgquceCAs5D2/LM2St6x/738uFbqhAW2cy8HTOswr45kqCgvw39JdVoch1lR5fxSesB9M+97GF9EnifcYbBruM9icRhKFOgcuYZ9fIWUMiVIvkZeJCDPazq2o5nMS4NIlr/3UDMN3daHdf7/hc0EGXOYTIxh9Ajtu3j/6A3qZFAHKodglJjVBAvU34/3dx54yixzEya7k2fEFHchPTbnz0ds5mOXsGrZSZE6zEWz6+IjojbNn4eeI1RRrGiXdMs6pKCypn0cozozIY/YpuHB3g0NkqSRBptQ4MhL0QgRfpUfYrNGa8ev7EXq+YFir5YA0TJyG46FaEL/s1zP6Gzc14r5UIdeCITn8Ka6E0rdOwkE4pqZ9aSfWEXaN4UMo9a6B3VJiS2NXKV9wDrxwEzLHIY1ml3PkBjBc77C5ixLJT2NpN4gDWfoPuQdQAkdhVss2ZbylbEWpUMo0D/7crxu6FDhAjLkhCoWhVgoqy2no3HRwBvjrP55pZ1QFxDxVY7N6bx7EbDpB/wb9iFTHOFSjoy7m0aVul2mXMRjLCfHNMBQk3sEAcikgYmch2zPzKuCrqWOjVfMFKgne57N6f7FsvLGFG0JeJ+NXA6XJoyqZ5Y4eJhNbmbJoHahOQkngqceyWzJBfh5/9jbLJReNi9DMJT7nkg4zUUz+oTFU dOvomnbC gBtenWzrjqYTdjSffiB4tqM48uEG7u6dh0tddT2t8u+R5zwDqg/Kcz+GwkBNDyv7wry3TItgnRNH2J7+ovpuDH1TWO6t/4TaHkPwZQxkKTruW+66KlopqZIe51Q0D+FAILq2ZwK0VU3ZtoCP34oHgPSl2pN3cH5mIQBS20jnj4WxSYgDWNxtqeXnEZw== 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: 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