]> www.infradead.org Git - users/hch/configfs.git/commit
dm-cache: fix warnings about duplicate slab caches
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 11 Nov 2024 15:51:02 +0000 (16:51 +0100)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 11 Nov 2024 16:04:39 +0000 (17:04 +0100)
commit346dbf1b1345476a6524512892cceb931bee3039
treeccf912859cf6d78384303a0a8a8ba244f88d2872
parent42964e4b5e3ac95090bdd23ed7da2a941ccd902c
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")
drivers/md/dm-cache-background-tracker.c
drivers/md/dm-cache-background-tracker.h
drivers/md/dm-cache-target.c