* + maple_tree-use-mt_node_max-instead-of-direct-operations-mt_max.patch added to mm-unstable branch
@ 2022-12-21 21:14 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-12-21 21:14 UTC (permalink / raw)
To: mm-commits, Liam.Howlett, vernon2gm, akpm
The patch titled
Subject: maple_tree: use mt_node_max() instead of direct operations mt_max[]
has been added to the -mm mm-unstable branch. Its filename is
maple_tree-use-mt_node_max-instead-of-direct-operations-mt_max.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/maple_tree-use-mt_node_max-instead-of-direct-operations-mt_max.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Vernon Yang <vernon2gm@gmail.com>
Subject: maple_tree: use mt_node_max() instead of direct operations mt_max[]
Date: Wed, 21 Dec 2022 14:00:54 +0800
Use mt_node_max() to get the maximum number of slots for a node,
rather than direct operations mt_max[], makes it better portability.
Link: https://lkml.kernel.org/r/20221221060058.609003-4-vernon2gm@gmail.com
Signed-off-by: Vernon Yang <vernon2gm@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/maple_tree.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/lib/maple_tree.c~maple_tree-use-mt_node_max-instead-of-direct-operations-mt_max
+++ a/lib/maple_tree.c
@@ -6725,7 +6725,7 @@ static void mt_dump_range64(const struct
if (i < (MAPLE_RANGE64_SLOTS - 1))
last = node->pivot[i];
- else if (!node->slot[i] && max != mt_max[mte_node_type(entry)])
+ else if (!node->slot[i] && max != mt_node_max(entry))
break;
if (last == 0 && i > 0)
break;
@@ -6832,7 +6832,7 @@ void mt_dump(const struct maple_tree *mt
if (!xa_is_node(entry))
mt_dump_entry(entry, 0, 0, 0);
else if (entry)
- mt_dump_node(mt, entry, 0, mt_max[mte_node_type(entry)], 0);
+ mt_dump_node(mt, entry, 0, mt_node_max(entry), 0);
}
EXPORT_SYMBOL_GPL(mt_dump);
_
Patches currently in -mm which might be from vernon2gm@gmail.com are
maple_tree-remove-extra-space-and-blank-line.patch
maple_tree-remove-extra-return-statement.patch
maple_tree-use-mt_node_max-instead-of-direct-operations-mt_max.patch
maple_tree-use-macro-ma_root_parent-instead-of-number.patch
maple_tree-remove-the-redundant-code.patch
maple_tree-refine-ma_state-init-from-mas_start.patch
maple_tree-refine-mab_calc_split-function.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-21 21:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-21 21:14 + maple_tree-use-mt_node_max-instead-of-direct-operations-mt_max.patch added to mm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.