Message ID | 20230314033734.481904-1-zhangpeng362@huawei.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 F4058C74A44 for <linux-mm@archiver.kernel.org>; Tue, 14 Mar 2023 03:38:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E6AD36B0075; Mon, 13 Mar 2023 23:38:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D7E2F6B0078; Mon, 13 Mar 2023 23:38:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BF6F36B007D; Mon, 13 Mar 2023 23:38:32 -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 A9F536B0075 for <linux-mm@kvack.org>; Mon, 13 Mar 2023 23:38:32 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 80EAEC0FCD for <linux-mm@kvack.org>; Tue, 14 Mar 2023 03:38:32 +0000 (UTC) X-FDA: 80566096464.30.7C14D93 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf05.hostedemail.com (Postfix) with ESMTP id 6ABB8100007 for <linux-mm@kvack.org>; Tue, 14 Mar 2023 03:38:30 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf05.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678765110; 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:content-transfer-encoding:in-reply-to: references; bh=me5xp3Kuo5gNr8zczbjX+UH6t3ga+YIB6KAeeXQBQ7U=; b=BoBr2QUcSEQx+Xasb2L+QmIwWPgDZKhs7gEJFPTafYyykq2z0kHsJ9iyTxvpGbX8gpUBSL gUymjoMfpV6dGQyDb3+faIs1aucKlk/KcAMVHncn8SI752gvtVH+ChKykmymC7gdyIqpIx Sd//6n9hZ4qUUJ7NXkw19iSXLpxgans= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf05.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678765110; a=rsa-sha256; cv=none; b=HHNrWtkWfDAzU+icgcx9I7/UU5YH/ovfisrkY1i+ABwr4JEBShZn+/tAJDPDsyxquEHhzO WXGW9e8UUktLxsOC8XG8y3YWWveaEMuuPWy4LSWS5SqSgLwtkmiT2DCqqsitjw5Mf8lfzr 3rjD0B0TfOLFIqmE+3U/axyMCPHPG+Q= Received: from kwepemm600020.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4PbK0W1xCBzSlRQ; Tue, 14 Mar 2023 11:35:07 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by kwepemm600020.china.huawei.com (7.193.23.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 14 Mar 2023 11:38:19 +0800 From: Peng Zhang <zhangpeng362@huawei.com> To: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org> CC: <akpm@linux-foundation.org>, <willy@infradead.org>, <mike.kravetz@oracle.com>, <vishal.moola@gmail.com>, <sidhartha.kumar@oracle.com>, <wangkefeng.wang@huawei.com>, <sunnanyong@huawei.com>, ZhangPeng <zhangpeng362@huawei.com> Subject: [PATCH 0/3] userfaultfd: convert userfaultfd functions to use folios Date: Tue, 14 Mar 2023 03:37:31 +0000 Message-ID: <20230314033734.481904-1-zhangpeng362@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600020.china.huawei.com (7.193.23.147) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 6ABB8100007 X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: gi84ojhuzi1tp71q83nf9jcec7kzpbqr X-HE-Tag: 1678765110-687370 X-HE-Meta: U2FsdGVkX1/tEZWDL3PJfcb7RLJCPtHCyFlYuIQn02fM+7DIc6sKlBB9IMMXUPQDUsMayMShDGGoap6dhKebjnHJiTCO81RtK5OjFS7oen7YNNFt6EeuTMJLqzTck8CeIdBMpItRuaW49lKX/7r3FrwJgvjRGnOfTTeGj1+rf2+j7LCEwNYQ+Etih9/jYaogMi21Eg2dKW23ul7DEesA+BgQt4KyyTAGMS/xs18toEBEv35W5eXEhqOToofj6A0ldWmVZNuRK0SuvJFqv+9QcjcLQGLWCx13vXpsn654GevQSERubYgGHggx3lS3PBe9/IGzq4dNtOc8jiQVs11J5hRMgkHC/QNOU9oyTKaIEq3kQ4WA/1JfTFHrzWp0cjIgDRNbsF5H9mufIm58jbDEcUMa+HWl5/sdoMk5V/7WVOBmuC4NdSFQLqtkBVTfZJaZVMu/7nG8HeYlUTROnET4UvS8Cmav4nLdtVoWrdUw9n2DB1Rnz8a6GHzV7rPr237aG5nEjIYKoMdGFeuF48bMVA7JpwjhcsQI3bvU/XXpC79HEerEtiW2eHOi0S9SL+hvMXzedYJuK1Rw3vuUoT7+94xSaa9juHFPpRYkSZtGhdizudE9WUriEOovLkSgJVrH6cbd2Hwt6gatYj6m9V8i6ZKBION/BPPsf+PM/SIt7zmLN1saKFzFSqy940QHRzh7K6wTE6vuZYkNCvnC3aGRi26mkQVIqCUtDCHCBo6DEgApxEb4+/1gw03adZxtGzgn7vwk7AaMM0rYsaLwbiTWKowkuVoTG6zbQMoNenAQMJ7Jin+p4Yv3D46dbCzkvE9lCB0M/PCBr2Jdl9JpQczr+9Qf0DcHlI/lY/G5+YYJ2yY3MnVPF8VAaDD2wya2B24qaSGoSXYN/8wyFtLLrlL+zDRc/QvSd7QJRUT4luIzFBev+h5pMh+CjWLlfgOiSQxUkXsC2X4twoe0ndhd/KJ KVze1+5X o7kRbzY4M4KYEZtT6XO/OtlM1KBkMSMxNbqQimoCTQXtOFopPyPIOoMhnOL/YIH9ZDt6qtoK4YVq3zh7sqqhScCs8jnE9mxspf/C0FGoXPPowG4gDNqiK7VGNoFxV4Lo9AZec2d8ZFJWPeA1EYp/F/xXJoQwkSxxOQSxAcVRpuzcHR8DGfVck6BiNmEr86oa88A0mlE1+5aEu9fRRjtBlGlOne7pnjHxaGxaIatlCJP7w4I8= 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: <linux-mm.kvack.org> |
Series |
userfaultfd: convert userfaultfd functions to use folios
|
expand
|
From: ZhangPeng <zhangpeng362@huawei.com> This patch series converts several userfaultfd functions to use folios. And this series pass the userfaultfd selftests and the LTP userfaultfd test cases. ZhangPeng (3): userfaultfd: convert mcopy_atomic_pte() to use a folio userfaultfd: convert __mcopy_atomic_hugetlb() to use a folio userfaultfd: convert __mcopy_atomic() to use a folio include/linux/hugetlb.h | 4 +-- include/linux/mm.h | 3 +- include/linux/shmem_fs.h | 2 +- mm/hugetlb.c | 25 +++++++------- mm/memory.c | 18 +++++----- mm/shmem.c | 17 +++++---- mm/userfaultfd.c | 74 +++++++++++++++++++--------------------- 7 files changed, 70 insertions(+), 73 deletions(-)