Commit fad8e42
maple_tree: make maple state reusable after mas_empty_area_rev()
Stop using maple state min/max for the range by passing through pointers
for those values. This will allow the maple state to be reused without
resetting.
Also add some logic to fail out early on searching with invalid
arguments.
Link: https://lkml.kernel.org/r/20230414145728.4067069-1-Liam.Howlett@oracle.com
Fixes: 54a611b ("Maple Tree: add new data structure")
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reported-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent fdea03e commit fad8e42
1 file changed
Lines changed: 13 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4965 | 4965 | | |
4966 | 4966 | | |
4967 | 4967 | | |
4968 | | - | |
| 4968 | + | |
| 4969 | + | |
4969 | 4970 | | |
4970 | 4971 | | |
4971 | 4972 | | |
| |||
5030 | 5031 | | |
5031 | 5032 | | |
5032 | 5033 | | |
5033 | | - | |
5034 | | - | |
| 5034 | + | |
| 5035 | + | |
5035 | 5036 | | |
5036 | 5037 | | |
5037 | 5038 | | |
| |||
5307 | 5308 | | |
5308 | 5309 | | |
5309 | 5310 | | |
| 5311 | + | |
| 5312 | + | |
| 5313 | + | |
5310 | 5314 | | |
5311 | 5315 | | |
5312 | 5316 | | |
| |||
5361 | 5365 | | |
5362 | 5366 | | |
5363 | 5367 | | |
| 5368 | + | |
| 5369 | + | |
| 5370 | + | |
5364 | 5371 | | |
5365 | 5372 | | |
5366 | 5373 | | |
| |||
5380 | 5387 | | |
5381 | 5388 | | |
5382 | 5389 | | |
5383 | | - | |
| 5390 | + | |
5384 | 5391 | | |
5385 | 5392 | | |
5386 | 5393 | | |
| |||
5395 | 5402 | | |
5396 | 5403 | | |
5397 | 5404 | | |
5398 | | - | |
5399 | | - | |
5400 | | - | |
5401 | | - | |
5402 | | - | |
5403 | | - | |
5404 | | - | |
5405 | | - | |
5406 | 5405 | | |
5407 | | - | |
5408 | | - | |
| 5406 | + | |
| 5407 | + | |
5409 | 5408 | | |
5410 | 5409 | | |
5411 | 5410 | | |
| |||
0 commit comments