From patchwork Fri Oct 28 15:15:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13023826 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 64479ECAAA1 for ; Fri, 28 Oct 2022 15:15:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 94BA56B0088; Fri, 28 Oct 2022 11:15:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8D4C88E0002; Fri, 28 Oct 2022 11:15:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 77FCC8E0001; Fri, 28 Oct 2022 11:15:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 61C5C6B0088 for ; Fri, 28 Oct 2022 11:15:36 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 3467541349 for ; Fri, 28 Oct 2022 15:15:36 +0000 (UTC) X-FDA: 80070707472.29.1C1D3C5 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf14.hostedemail.com (Postfix) with ESMTP id BE90A10002E for ; Fri, 28 Oct 2022 15:15:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=mtCOQ8IfyHNs2cs7G6wJOr9WNbsBhcSPT1YWn3us/V0=; b=MCGtB0qRQ8ViEJrz1aYuwGINnz N7Yc80x5HukY8Qnxw4GESN8I4TZQ6I2iKNfIXEOcdVMfJDWJ2iXGTiEcWuIuG/Wi5LAQLKRjc07Kc 00nr1eYZ1fz5EK7+wF9bi6acaFJ2VI9V2oPNp5st01F4XpmhcVFg9HshZ1VQsXddhJV7jEzQ34kcs RnSjL11/r7191jL9kxshRNhnW+wVivVzl2RPkr38FuP0sdpPCjNXBFiroJGsl4UaF/U1Gu2jiseF3 TUY6xg/P7veFOMmFqRRwhvOR5Y/5d7A+5r13/LJp2cHkSsdpWQc9vWHYI1mrayMSIsD/EqRv3VTAq gN9yDzmw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooR4x-001LAI-Mi; Fri, 28 Oct 2022 15:15:27 +0000 From: "Matthew Wilcox (Oracle)" To: linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" , Uladzislau Rezki , David Howells , Dave Chinner , linux-fsdevel@vger.kernel.org, Thomas Gleixner , Ira Weiny , "Fabio M. De Francesco" , Luis Chamberlain Subject: [PATCH 0/1] Mapping an entire folio Date: Fri, 28 Oct 2022 16:15:25 +0100 Message-Id: <20221028151526.319681-1-willy@infradead.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=MCGtB0qR; spf=none (imf14.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=1666970135; a=rsa-sha256; cv=none; b=zrE7+tAshwsYFGPlERzF5QBwfbgtaYVbBXWdGmDifaGbHxRXtpy7Cf7e/jaiOhh1RFWCyh hstrkEy4JTVvaddbtXlfzuN++0RKC0wAH8TfUi/jP5J4V8II3op+xNmPFnB4rt8PEjHQSA Fca4eGDF5txK4PqP3owzu9JYgU/6IFc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666970135; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=mtCOQ8IfyHNs2cs7G6wJOr9WNbsBhcSPT1YWn3us/V0=; b=X/JSOnCXmTXciI5xfEG68KvQzCaMF6xw4fwE4lFBShPCfu2+ITzjS9N2+IMITE8SfTofAZ VhtCMGE7vQsfYAVlTDfvZcSLaOm9eJP7cuut54GEqVORyiRBZlsZkiEozCUv5ymx3jGyRU 1YiMeuV3Ypgn1kU6MZQ8jeL+nD3I4nc= X-Rspam-User: X-Rspamd-Queue-Id: BE90A10002E Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=MCGtB0qR; spf=none (imf14.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none X-Stat-Signature: d1yig1poxwjk7pumwepatk3i8mtzyxob X-Rspamd-Server: rspam10 X-HE-Tag: 1666970135-253231 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: I had intended to write and test one user before sending this out, but Dave Howells says he has a user now that wants this functionality, so here we go. It is only compile tested. Earlier thread on this: https://lore.kernel.org/all/YvvdFrtiW33UOkGr@casper.infradead.org/ Matthew Wilcox (Oracle) (1): mm: Add folio_map_local() include/linux/highmem.h | 40 ++++++++++++++++++++++++++++++++- include/linux/vmalloc.h | 6 +++-- mm/vmalloc.c | 50 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 3 deletions(-)