]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Thoughts, fix whitespace, fix compile issue
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 14 Feb 2020 16:39:56 +0000 (11:39 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 18:59:00 +0000 (14:59 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Thoughts
lib/maple_tree.c

index d3a49288fb50a58dc80422b52d4a5ba8661baaf9..9df22cb0886bbbd751506f8f06a3b22f1b982914 100644 (file)
--- a/Thoughts
+++ b/Thoughts
@@ -322,7 +322,7 @@ replacement n0 for the "split" of n2:
 n0: (NULL, 977, n2, 992, n1, 1000, NULL, 0)
 n2: (NULL, NULL, NULL, NULL, NULL, NULL, NULL, p985, p986, ..., p992)
 
-We can now fill in n2 all the way to index 978.  
+We can now fill in n2 all the way to index 978.
 
 File descriptors
 ----------------
@@ -339,7 +339,7 @@ nodes; a range_16 with two children; dense from 0-13 and then sparse_9
 from 255-255.  Continuing to allocate fds from the bottom up will result
 in allocating dense nodes from 14-27, 28-41, 42-55, 56-69, 70-83, 84-97,
 ... until the range_16 is full at 12 * 14 = 168 pointers.  From there,
-we'd allocate another range_16 
+we'd allocate another range_16
 
 The 4kB page node can accommodate 504 pointers with 504 bits used for
 the tag.  From there. we'd want to go to a 64kB page (order 4) and
index 7b9a5e0de0ae168720c6687462b4faa3cf2f701f..37a78923e855be72411b9f3a6e0b5da83dd121f2 100644 (file)
@@ -3589,7 +3589,7 @@ static inline bool _mas_rev_awalk(struct ma_state *mas, unsigned long size)
 
                        /* check if this slot is full */
                        entry = _mte_get_rcu_slot(mas->node, i, type);
-                       if (entry && !mt_is_deleted(entry))
+                       if (entry && !xa_is_deleted(entry))
                                goto next_slot;
 
                        this_gap = max - min + 1;