| commit | 346dbf1b1345476a6524512892cceb931bee3039 | [log] [tgz] |
|---|---|---|
| author | Mikulas Patocka <mpatocka@redhat.com> | Mon Nov 11 16:51:02 2024 +0100 |
| committer | Mikulas Patocka <mpatocka@redhat.com> | Mon Nov 11 17:04:39 2024 +0100 |
| tree | ccf912859cf6d78384303a0a8a8ba244f88d2872 | |
| parent | 42964e4b5e3ac95090bdd23ed7da2a941ccd902c [diff] |
dm-cache: fix warnings about duplicate slab caches
The commit 4c39529663b9 adds a warning about duplicate cache names if
CONFIG_DEBUG_VM is selected. These warnings are triggered by the dm-cache
code.
The dm-cache code allocates a slab cache for each device. This commit
changes it to allocate just one slab cache in the module init function.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Fixes: 4c39529663b9 ("slab: Warn on duplicate cache names when DEBUG_VM=y")