Commit 9b60811
maple_tree: Use kfree_rcu in ma_free_rcu
kfree_rcu is an optimized version of call_rcu + kfree. It used to not be
possible to call it on non-kmalloc objects, but this restriction was
lifted ever since SLOB was dropped from the kernel, and since commit
6c6c47b ("mm, slab: call kvfree_rcu_barrier() from kmem_cache_destroy()").
Thus, replace call_rcu + mt_free_rcu with kfree_rcu.
Signed-off-by: Pedro Falcato <pfalcato@suse.de>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>1 parent 551a6e7 commit 9b60811
1 file changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 190 | | |
198 | 191 | | |
199 | 192 | | |
| |||
204 | 197 | | |
205 | 198 | | |
206 | 199 | | |
207 | | - | |
| 200 | + | |
208 | 201 | | |
209 | 202 | | |
210 | 203 | | |
| |||
5099 | 5092 | | |
5100 | 5093 | | |
5101 | 5094 | | |
5102 | | - | |
| 5095 | + | |
5103 | 5096 | | |
5104 | 5097 | | |
5105 | 5098 | | |
| |||
5183 | 5176 | | |
5184 | 5177 | | |
5185 | 5178 | | |
5186 | | - | |
| 5179 | + | |
5187 | 5180 | | |
5188 | 5181 | | |
5189 | 5182 | | |
| |||
0 commit comments