Commit 42964e4
Mikulas Patocka
dm-bufio: fix warnings about duplicate slab caches
The commit 4c39529 adds a warning about duplicate cache names if
CONFIG_DEBUG_VM is selected. These warnings are triggered by the dm-bufio
code. The dm-bufio code allocates a slab cache with each client. It is
not possible to preallocate the caches in the module init function
because the size of auxiliary per-buffer data is not known at this point.
So, this commit changes dm-bufio so that it appends a unique atomic value
to the cache name, to avoid the warnings.
Signed-off-by: Mikulas Patocka <[email protected]>
Fixes: 4c39529 ("slab: Warn on duplicate cache names when DEBUG_VM=y")1 parent 2d5404c commit 42964e4
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2471 | 2471 | | |
2472 | 2472 | | |
2473 | 2473 | | |
2474 | | - | |
| 2474 | + | |
| 2475 | + | |
2475 | 2476 | | |
2476 | 2477 | | |
2477 | 2478 | | |
| |||
2522 | 2523 | | |
2523 | 2524 | | |
2524 | 2525 | | |
2525 | | - | |
| 2526 | + | |
| 2527 | + | |
2526 | 2528 | | |
2527 | 2529 | | |
2528 | 2530 | | |
| |||
2531 | 2533 | | |
2532 | 2534 | | |
2533 | 2535 | | |
2534 | | - | |
| 2536 | + | |
| 2537 | + | |
2535 | 2538 | | |
2536 | | - | |
| 2539 | + | |
| 2540 | + | |
2537 | 2541 | | |
2538 | 2542 | | |
2539 | 2543 | | |
| |||
0 commit comments