linux/drivers/md/dm-pcache
Qianfeng Rong 4466dd3d71 dm-pcache: use int type to store negative error codes
Change the 'ret' variable from u32 to int to store negative error codes or
zero returned by cache_kset_close().

Storing the negative error codes in unsigned type, doesn't cause an issue
at runtime but it's ugly. Additionally, assigning negative error codes to
unsigned type may trigger a GCC warning when the -Wsign-conversion flag
is enabled.

No effect on runtime.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
History 2025-09-02 11:19:12 +02:00
..
backing_dev.c dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
backing_dev.h dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
cache.c dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
cache.h dm-pcache: cleanup: fix coding style report by checkpatch.pl 2025-09-01 13:30:54 +02:00
cache_dev.c dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
cache_dev.h dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
cache_gc.c dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
cache_key.c dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
cache_req.c dm-pcache: use int type to store negative error codes 2025-09-02 11:19:12 +02:00
cache_segment.c dm-pcache: remove ctrl_lock for pcache_cache_segment 2025-09-01 13:30:39 +02:00
cache_writeback.c dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
dm_pcache.c dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
dm_pcache.h dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
Kconfig dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
Makefile dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
pcache_internal.h dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
segment.c dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00
segment.h dm-pcache: add persistent cache target in device-mapper 2025-08-25 15:25:29 +02:00