From patchwork Wed Jul 17 01:41:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13735020 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 25B8BC3DA59 for ; Wed, 17 Jul 2024 01:42:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A0EAA6B0085; Tue, 16 Jul 2024 21:42:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9BF2F6B0088; Tue, 16 Jul 2024 21:42:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 886E36B0092; Tue, 16 Jul 2024 21:42:09 -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 61FE26B0085 for ; Tue, 16 Jul 2024 21:42:09 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 7D0C7A5A87 for ; Wed, 17 Jul 2024 01:42:08 +0000 (UTC) X-FDA: 82347543936.06.7BBD360 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by imf10.hostedemail.com (Postfix) with ESMTP id C6F14C0007 for ; Wed, 17 Jul 2024 01:42:05 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="m/jBA+gx"; spf=pass (imf10.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.45 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1721180473; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references:dkim-signature; bh=O51+vEEbmj3W2QZfLWLzxQ+Ab88hngmIFK5itZ/buc4=; b=g7bEqV5S5xrZeDjW1HD8/0kCAKhKJ75mOjVDrBNbEdMWyd8ujmyFCcpWol5IxHg6xGxj6p LqJsKO3dadid5lWt4uGuxlQzhU8pNW0BThr4Btg0l67PyrlfKArBB1SD+lXLk15RGMzRmO xL0bkCeYwhORZpk6EjRSFeVXW32GbIY= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="m/jBA+gx"; spf=pass (imf10.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.45 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721180473; a=rsa-sha256; cv=none; b=LjUSyE8oza3EmH6pa4d5WXDLTfRWwxYe9c15JpUcXJG2mI8O2ZmeVO0V2GHKF+s9TlVu5G cq6suehitqQGV7arE6RY1Tw7LjJ3RMOfB3w3CFnbOAkWLlcmPUV5jecD2ksi+dfLvTqSkl lnTQkLd1da/nNmM+FNj8rYtGOo3bUCs= Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a77e2f51496so721246166b.0 for ; Tue, 16 Jul 2024 18:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721180524; x=1721785324; darn=kvack.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=O51+vEEbmj3W2QZfLWLzxQ+Ab88hngmIFK5itZ/buc4=; b=m/jBA+gx+dkaj+ZNRtvYcFA7zWLiwHsXxtBbVSdfFoUvv5ihGXbxavA4igGerQSVIv +TfPYZbdbJ709dONHMScWskGExRoGBhY4iEBEbuhpddT4uhOtgyPsX1f1dm4B+bNnjNo 8hhlnlouU9DhaUHqtLk6sdHRQ8UT8wF+j+6jB1Ml8vErZZznTQulEVfcrYzVzXIjk02R VqUlglIZSL9inkSv7ZtELls4ULtKoYhsK774pQqqWAxF7AqcG+j+9ylLJ3s1xc6yDJOp y2R6TQOQ5Vy1fbx62bbYIx5Rt5sDw9EgDEpJpgYTbrdrbVW61CKgo2T7Rx7IYWycRzkF EiNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721180524; x=1721785324; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O51+vEEbmj3W2QZfLWLzxQ+Ab88hngmIFK5itZ/buc4=; b=HldOAMeBGO9TJZET+gcv7RDmhAXgYdnN/tFck39qY3h2jo/aMJlGNnIeCMYGsv9i98 RjTy6EbBD7cinoZ3JwGS3HjreyKjOZRUHfo6AWTxRuPLxEdXqZokwZJuSCq5rLbqn6cE cGZR2VUtXHdzagek4pDja4K+DOGUkqv7xK7JURGTI6sW9yAPxRuYZQu36ZLOkMRx8YWR SNIZXytqel08moF+/R4AVyzzOjJURv4DTOi+9W3FVp9agOWzV+0OJZxBA/6836iQLbyd 43QDkS8sKy2pQs+dXXfM+5jILxQviPIowiBf3l84s+NoXXIZxeEEkHh0A6Oz6X34qYQU R5rA== X-Forwarded-Encrypted: i=1; AJvYcCULE6tyU5GTnlER39YUOn06yhQd8X1+nOhGO/XFs9xmzYoGuX/ITJUAhw6G+I75O2ZCK8Js5d6kmv6YXe0TxqQcZTQ= X-Gm-Message-State: AOJu0Yyi+he6v7KNzlOnnvgXERgj6IxkVg/F3dRFaodeIHhF5kT41aPu pZHzufUvi03yhAPFIRcWEMg8WXq3ctJ7LXK+DqT12hKpVf4lo2nv X-Google-Smtp-Source: AGHT+IH/SJsQJBfalvf19cyDCb984FNzb4ClJ1Uz5b0DTtK+c9Izel6jPru6z94UyD08Ag+Q7jviGw== X-Received: by 2002:a17:906:a92:b0:a77:c5a5:f662 with SMTP id a640c23a62f3a-a7a01120a28mr14292266b.12.1721180522782; Tue, 16 Jul 2024 18:42:02 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc7ffffbsm393456466b.173.2024.07.16.18.42.02 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Jul 2024 18:42:02 -0700 (PDT) From: Wei Yang To: Liam.Howlett@oracle.com Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, Wei Yang Subject: [PATCH] maple_tree: fix the comment on maple_arange_64 size Date: Wed, 17 Jul 2024 01:41:42 +0000 Message-Id: <20240717014142.24263-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: C6F14C0007 X-Stat-Signature: i1zshfrgtqtximf1em41dotnx6pf17u3 X-Rspam-User: X-HE-Tag: 1721180525-837895 X-HE-Meta: U2FsdGVkX18KYOC5Kfi+EcckQEgE0fw61MSzkt/WEIZTGvdUtTlpQTWIMmvnz1d7BgOvaChbOFXlzV/btuTxVwtGNQehPzIq4pAgi/qM62V/LhCWpzjCee92N/V3fDwC+g2okFhI0+gFFjzSd8MSuYwjtumBwENkQfLOnfktXEYMdFmTS4WJVFqhmXzEHIK4/PPZ6vZUe4VnonQwSd5Zs7KicCLzPMYL198NuI3W/5SWGgmzQSZPf3vlWcx/LvVU3qRTiq7FaFx4MJbJa7bsxPUWY7wK1Gq0InLh8hak+rWq8ffWW09ujyXuY94bHE9QjLQbaL2Elk696aoVNJ6pr9mjL/PFIglUoApeiGe+sJlOATNArg3j0n+nJVw5ftK1iqsBzYaJzZogrT2g4fnZ0TCiIpgy9IseEpDljBC33mcgdXIGSnP6vz1NrFyTG5pIPN+R/cFRfINHS066eDPhyMnJN309hJnSbVIH1nhV36U5MWnxzPO9L5eFfQXqwjpmWMbxnAEOPC+JrC2WrATaWrHdUOLRsWOCBIAUnChGUsa4zF7OuG1DjhGe4c3hVPOfeXc7anE9XEW1B42AgESoe9Vb28mqO14dTgORcZqlU59wJppk7qEMzKDI722P6Ik0T0ufwGjX0WJYWpmiZdq9O0zpHGLXDWRPdYOh8+DT8Mvj45gSWdzWyYlouXFAOjm6pu3D/UddwoqyDqZgEHZHxAOeVfCrsE3LZ2jPqhaygxti1ylDydO/Up+X4zHI5S1ZiikoNT3QMuVdDQCOeyhIyK9BRH/zXGcNZni7BpeyDcSzxMdpi5rhCwLY3h1J+strL9wZhSPImK0S+LCZVJyQ476O9XkicAlIBb7rJrSHmAJtIb/JMGBqlr+niKB0OTUIbdEDx6ODGMNwrwc7Ha8J4uHXv8YOoJ5MUm6NAftKlboAmsswl3FodWXgcJdpZMeM3Q+V8jDbsF/z0SOWZa0 7T6Iljbo Dxq0ts5e6IHpb0NBI90q3QwaJj/E6wkZrXV7iJScWKX/bq0/L5pCMmaD7Bqc8A8dKTGjUWzlPmaASQYaNl/prBaSnoyd4X7WP9J6SxnQiMTh6Emis/QWt8yAmvQp7B3WgaeHZx9PIT+r2rJqLBky5J3PuamqhZrJNZeeGAA4hYO1gzVj6bjg/CGO8Wx2r6esCGt4R+IcCFZOrz54+Q7wzwNmKeCtNcokad6JrfU9WWeDLR15bXz4OEzg1csFJaBMFlAn7DASIWcN9jnUxygSugVmXEaX5Sn2UiivjWKvEOiEqRRJcZIowG357yizscmdOTXe2j9X2KE/FQ1e0FQA8FSuppm0m9s+9dGE9PSjHaOJ4nSvBOFPer+B7CKsMt/IQU8asLC7fCU+DCqM/XD5c2uO2Dla3mO9ARTdGlDL3SsDUqck4GuOYwY4hsRhbU+LJYOnys/Ig2B/SOu0mxAtFyna3Xa+DIl0RT9zj 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: List-Subscribe: List-Unsubscribe: The comment here describe the size of struct maple_arange_64. The value here is not correct. Fix it with the correct value. Signed-off-by: Wei Yang CC: "Liam R. Howlett" --- For 64BIT, value is get from kernel module. For 32BIT, value is get from user space pseudo code. --- include/linux/maple_tree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/maple_tree.h b/include/linux/maple_tree.h index a53ad4dabd7e..8c87f8d0497d 100644 --- a/include/linux/maple_tree.h +++ b/include/linux/maple_tree.h @@ -28,13 +28,13 @@ /* 64bit sizes */ #define MAPLE_NODE_SLOTS 31 /* 256 bytes including ->parent */ #define MAPLE_RANGE64_SLOTS 16 /* 256 bytes */ -#define MAPLE_ARANGE64_SLOTS 10 /* 240 bytes */ +#define MAPLE_ARANGE64_SLOTS 10 /* 248 bytes */ #define MAPLE_ALLOC_SLOTS (MAPLE_NODE_SLOTS - 1) #else /* 32bit sizes */ #define MAPLE_NODE_SLOTS 63 /* 256 bytes including ->parent */ #define MAPLE_RANGE64_SLOTS 32 /* 256 bytes */ -#define MAPLE_ARANGE64_SLOTS 21 /* 240 bytes */ +#define MAPLE_ARANGE64_SLOTS 21 /* 256 bytes */ #define MAPLE_ALLOC_SLOTS (MAPLE_NODE_SLOTS - 2) #endif /* defined(CONFIG_64BIT) || defined(BUILD_VDSO32_64) */