Message ID | 20240814161944.55347-2-sidhartha.kumar@oracle.com (mailing list archive) |
---|---|
State | New |
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 61AEDC3DA4A for <linux-mm@archiver.kernel.org>; Wed, 14 Aug 2024 16:20:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 74F566B009A; Wed, 14 Aug 2024 12:20:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6D75D6B009C; Wed, 14 Aug 2024 12:20:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 505036B009D; Wed, 14 Aug 2024 12:20:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 2AC126B009A for <linux-mm@kvack.org>; Wed, 14 Aug 2024 12:20:07 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 4F2EEC1047 for <linux-mm@kvack.org>; Wed, 14 Aug 2024 16:20:05 +0000 (UTC) X-FDA: 82451362770.07.CA77A8B Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf08.hostedemail.com (Postfix) with ESMTP id 1B4DC160030 for <linux-mm@kvack.org>; Wed, 14 Aug 2024 16:20:02 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=KWWc+eVT; spf=pass (imf08.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1723652346; 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:in-reply-to:references:references:dkim-signature; bh=DrUVd8Ocr4EBUKoIid60LZ74yaHvtLUZiDCAkpS+Tww=; b=jkteB5VueAMmzDV+sM6mbt6jXMrrEyzrNvVSnqrMXAgOyj0ybLnzo9GSZjx4hlPcd8Y1zn wpBKE7qvvyET4ajcNqvFnr38+HFbYjoUY2Q+NsEZ2EAcWH0FFRsh9mrYPgqwneeY7J7532 gQ4gHmcQ46NTFOrLEOGSEBYliPvubrA= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=KWWc+eVT; spf=pass (imf08.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1723652346; a=rsa-sha256; cv=none; b=LoYdKFFTDT62JwxGtCEsFD4EF9Wyk/r+YR+uF7ajdtLtDMIxV5XGU86PXzUMhpVIqSOsMM WMroWo98NL+8wm8mwxHpCGwBCdUOC5hL44MoF6Npw5SgyTRSX5SbUFG8x6e65+w4xNSSPY LUs1u/OAb4drrDBLQFiKfs1gYqygmCY= Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47EBtcoM013696; Wed, 14 Aug 2024 16:19:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=corp-2023-11-20; bh=D rUVd8Ocr4EBUKoIid60LZ74yaHvtLUZiDCAkpS+Tww=; b=KWWc+eVTxu1rIJZZ6 rMAdO+mGNmNk95hmtiWDlW7kveyeWNruY/48N1MqXPGZN+LCrgVKJNKLTDBcoLQ/ s84vE0/qtoH+DRCc05Q2GKEr1Ziza3BrRMgX8UGt1/Gtdrhkkj3L9TGfAAJVzSey hCzLsNujCb/OfYyKHJ3RZ4kJczgjNOfm9qsahwK98/uNGzEDxe5IDiryb8ihVfWi GbSYFcwoLe4tTDTb3mHfAS9xsE3BHxreCtRMhjYw9c2YjurDSzs/0AXbYY7pPHPH wDsOc9dilvekKHIdnqD3RevTq9d1y+JQWVP3EB+Rk8k8b5CoDMrAA/4P3PiqGfmz B1P/A== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 40x0rtrstq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Aug 2024 16:19:50 +0000 (GMT) Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 47EFqAgF021061; Wed, 14 Aug 2024 16:19:49 GMT Received: from pps.reinject (localhost [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 40wxngn7jc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Aug 2024 16:19:49 +0000 Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 47EGIvBw035951; Wed, 14 Aug 2024 16:19:48 GMT Received: from sidkumar-mac.us.oracle.com (dhcp-10-65-174-212.vpn.oracle.com [10.65.174.212]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTP id 40wxngn7gt-2; Wed, 14 Aug 2024 16:19:48 +0000 From: Sidhartha Kumar <sidhartha.kumar@oracle.com> To: linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, liam.howlett@oracle.com, willy@infradead.org, surenb@google.com, Sidhartha Kumar <sidhartha.kumar@oracle.com> Subject: [PATCH v4 01/17] maple_tree: introduce store_type enum Date: Wed, 14 Aug 2024 12:19:28 -0400 Message-ID: <20240814161944.55347-2-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240814161944.55347-1-sidhartha.kumar@oracle.com> References: <20240814161944.55347-1-sidhartha.kumar@oracle.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-14_12,2024-08-13_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 bulkscore=0 phishscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=842 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408140111 X-Proofpoint-ORIG-GUID: _eke-QWlv1NOCLsekQJ5eHK2j9FpMEtH X-Proofpoint-GUID: _eke-QWlv1NOCLsekQJ5eHK2j9FpMEtH X-Stat-Signature: eycofw7sj4xoykfbbjiame693erepye4 X-Rspam-User: X-Rspamd-Queue-Id: 1B4DC160030 X-Rspamd-Server: rspam02 X-HE-Tag: 1723652402-704621 X-HE-Meta: U2FsdGVkX1+yii0B729xpjMdi1vRRWb6hNcY61JSdrhdc7YmqAEWuJo2UC/aIiON7Ph2cnG0YY/08SAbED/6ldBUMSReG7nsMAmBvlS2Df5ztigkQyUGscyVN7kVL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0Tx0Vf/QvUBFm0aCLBxGcgSqtBAFzAfuhA5JHpm7a8IUtA0fkfw 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Introduce a store type enum for the Maple tree
|
expand
|
diff --git a/include/linux/maple_tree.h b/include/linux/maple_tree.h index a53ad4dabd7e..8e1504a81cd2 100644 --- a/include/linux/maple_tree.h +++ b/include/linux/maple_tree.h @@ -148,6 +148,18 @@ enum maple_type { maple_arange_64, }; +enum store_type { + wr_invalid, + wr_new_root, + wr_store_root, + wr_exact_fit, + wr_spanning_store, + wr_split_store, + wr_rebalance, + wr_append, + wr_node_store, + wr_slot_store, +}; /** * DOC: Maple tree flags @@ -436,6 +448,7 @@ struct ma_state { unsigned char offset; unsigned char mas_flags; unsigned char end; /* The end of the node */ + enum store_type store_type; /* The type of store needed for this operation */ }; struct ma_wr_state { @@ -477,6 +490,7 @@ struct ma_wr_state { .max = ULONG_MAX, \ .alloc = NULL, \ .mas_flags = 0, \ + .store_type = wr_invalid, \ } #define MA_WR_STATE(name, ma_state, wr_entry) \
Add a store_type enum that is stored in ma_state. This will be used to keep track of partial walks of the tree so that subsequent walks can pick up where a previous walk left off. Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> --- include/linux/maple_tree.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)