mas_preallocate() defaults to requesting 1 node for preallocation and then
,depending on the type of store, will update the request variable. There
isn't a check for a slot store type, so slot stores are preallocating the
default 1 node. Slot stores do not require any additional nodes, so add a
check for the slot store case that will bypass node_count_gfp(). Update
the tests to reflect that slot stores do not require allocations.
User visible effects of this bug include increased memory usage from the
unneeded node that was allocated.
Link: https://lkml.kernel.org/r/20231213205058.386589-1-sidhartha.kumar@oracle.com
Fixes:
|
||
|---|---|---|
| .. | ||
| generated | ||
| linux | ||
| trace/events | ||
| .gitignore | ||
| Makefile | ||
| benchmark.c | ||
| bitmap.c | ||
| idr-test.c | ||
| iteration_check.c | ||
| iteration_check_2.c | ||
| linux.c | ||
| main.c | ||
| maple.c | ||
| multiorder.c | ||
| regression.h | ||
| regression1.c | ||
| regression2.c | ||
| regression3.c | ||
| regression4.c | ||
| tag_check.c | ||
| test.c | ||
| test.h | ||
| xarray.c | ||