Message ID | 20240814161944.55347-9-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 B0EFCC531DC for <linux-mm@archiver.kernel.org>; Wed, 14 Aug 2024 16:20:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7C8BE6B00AE; Wed, 14 Aug 2024 12:20:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6FF816B00AF; Wed, 14 Aug 2024 12:20:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 57BED6B00B0; Wed, 14 Aug 2024 12:20:27 -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 2F1866B00AE for <linux-mm@kvack.org>; Wed, 14 Aug 2024 12:20:27 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 83DFFA10F4 for <linux-mm@kvack.org>; Wed, 14 Aug 2024 16:20:09 +0000 (UTC) X-FDA: 82451362938.22.7EB85FB Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf12.hostedemail.com (Postfix) with ESMTP id 31F0340018 for <linux-mm@kvack.org>; Wed, 14 Aug 2024 16:20:06 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=IFROYWw4; spf=pass (imf12.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=1723652350; 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=+5J3K/HmIJpRQS4W/uJ6jgAlZokAeNKvisghgsHFKU0=; b=4+eRu6YAvsR6WglX4xyf73acutgviMdRXF2/Rqu3VOsh6pg7dZl1WR2MhMeAEW4HjbxoDF DDqWKk0vaO/WAumt92KTmq8eOIFIeMxsD4+FDWJ5bdAQV1JNfkvirI4DC1VArN/qOG2mo+ rKVrwfl+p0EbQ5yTgzRFjbMW0lEPaSM= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=IFROYWw4; spf=pass (imf12.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=1723652350; a=rsa-sha256; cv=none; b=jse5hwET88fyJVCG+GY/a0x1hskf3/OeMr4Fe8DG7A1UCFC0KUipaugaFAE6ycTKmCoMPT VHmgOpXp02NR2WOMwqcVQerkhDK/xb9h2aqHqE5XFSCh7+uR5FCzbqLVNZ9uhv7fVBaQgP I8uABYZEp2cX3u2H1LDauRelz6gxSuw= 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 47EBtcGU013664; Wed, 14 Aug 2024 16:19:56 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=+ 5J3K/HmIJpRQS4W/uJ6jgAlZokAeNKvisghgsHFKU0=; b=IFROYWw4SAoarkD55 MsNWVCctGE1pd0Ew5UTbymaONaxdBjtebyEa1n9/wmDF7dL9VA+78p/CiBLM1QLy RN0SlPWgVdVlsXyvvH7x5IDFT2F6w9l88oy31lr2Rmw4fEnxQnzaJC4OZKtw1YND USS7MFTPH9KhRI95sA7zwQBX53ZjqTxd0lrJyw8MmsyGI7M8+R5/q2G3kv7TooVY 5LJCZI+Eaj33ff7mA4OPi2niFDwJe+ccna+AMx+kqquYM1CIqQmRZCCM7htljCML /vsjMAM06danwcyZc7rT3n5gic5IN9HnKUJA7PlXTWvvL28YVW1hutQk+ius1Spl Nfw8w== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 40x0rtrsty-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Aug 2024 16:19:56 +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 47EExw9p020871; Wed, 14 Aug 2024 16:19:54 GMT Received: from pps.reinject (localhost [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 40wxngn7p6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Aug 2024 16:19:54 +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 47EGIvCC035951; Wed, 14 Aug 2024 16:19:53 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-9; Wed, 14 Aug 2024 16:19:53 +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>, "Liam R. Howlett" <Liam.Howlett@oracle.com> Subject: [PATCH v4 08/17] maple_tree: print store type in mas_dump() Date: Wed, 14 Aug 2024 12:19:35 -0400 Message-ID: <20240814161944.55347-9-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=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408140111 X-Proofpoint-ORIG-GUID: KemaFXtiYByeyAQpqzfRLHYt45KvpHLk X-Proofpoint-GUID: KemaFXtiYByeyAQpqzfRLHYt45KvpHLk X-Stat-Signature: 43rsfct5kqx4iueebp8i3m6adi7rcoak X-Rspam-User: X-Rspamd-Queue-Id: 31F0340018 X-Rspamd-Server: rspam02 X-HE-Tag: 1723652406-445217 X-HE-Meta: U2FsdGVkX19nR2kpPOQ/pqEWrm1wtaS4GZYiFozuEngV6VvJBjix+N1n8kOuQFyp7cDzpAoZbRMcz9LgBHhs/6OuWdh3/vMTTtzuG2EHSHL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lq/t4QQ4meskVMq0KtHWfgfNt6rGMEohFnfBoSC57pzjhlqOe5fZe9+V7KQT84g7mUoolCx6QAgB4X1VDfDbYIbMQ= 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/lib/maple_tree.c b/lib/maple_tree.c index e01e05be6301..a1689fc6227b 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -7760,6 +7760,40 @@ void mas_dump(const struct ma_state *mas) break; } + pr_err("Store Type: "); + switch (mas->store_type) { + case wr_invalid: + pr_err("invalid store type\n"); + break; + case wr_new_root: + pr_err("new_root\n"); + break; + case wr_store_root: + pr_err("store_root\n"); + break; + case wr_exact_fit: + pr_err("exact_fit\n"); + break; + case wr_split_store: + pr_err("split_store\n"); + break; + case wr_slot_store: + pr_err("slot_store\n"); + break; + case wr_append: + pr_err("append\n"); + break; + case wr_node_store: + pr_err("node_store\n"); + break; + case wr_spanning_store: + pr_err("spanning_store\n"); + break; + case wr_rebalance: + pr_err("rebalance\n"); + break; + } + pr_err("[%u/%u] index=%lx last=%lx\n", mas->offset, mas->end, mas->index, mas->last); pr_err(" min=%lx max=%lx alloc=%p, depth=%u, flags=%x\n",