]> git.ipfire.org Git - thirdparty/linux.git/commit
dm-pcache: allow built-in build and rename flush helper
authorLi Chen <chenl311@chinatelecom.cn>
Tue, 11 Nov 2025 12:13:34 +0000 (20:13 +0800)
committerMikulas Patocka <mpatocka@redhat.com>
Tue, 18 Nov 2025 18:01:47 +0000 (19:01 +0100)
commit341d14bd69d05b1c30bd83c5056730ba6d78b83d
tree36301e4c173b0bcc01d65efb514fa9693d90d7b3
parent6a23ae0a96a600d1d12557add110e0bb6e32730c
dm-pcache: allow built-in build and rename flush helper

CONFIG_BCACHE is tristate, so dm-pcache can also be built-in.
Switch the Makefile to use obj-$(CONFIG_DM_PCACHE) so the target can be
linked into vmlinux instead of always being a loadable module.

Also rename cache_flush() to pcache_cache_flush() to avoid a global
symbol clash with sunrpc/cache.c's cache_flush().

Signed-off-by: Li Chen <chenl311@chinatelecom.cn>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-pcache/Makefile
drivers/md/dm-pcache/cache.c
drivers/md/dm-pcache/cache.h
drivers/md/dm-pcache/cache_req.c