mirror-linux/drivers/md/bcache
Kuan-Wei Chiu 3d8a9a1c35 bcache: update min_heap_callbacks to use default builtin swap
Replace the swp function pointer in the min_heap_callbacks of bcache with
NULL, allowing direct usage of the default builtin swap implementation. 
This modification simplifies the code and improves performance by removing
unnecessary function indirection.

Link: https://lkml.kernel.org/r/20241020040200.939973-8-visitorckw@gmail.com
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Ching-Chun (Jim) Huang <jserv@ccns.ncku.edu.tw>
Cc: Coly Li <colyli@suse.de>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: "Liang, Kan" <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Matthew Sakai <msakai@redhat.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2024-11-05 17:12:36 -08:00
..
Kconfig lib/min_heap: introduce non-inline versions of min heap API functions 2024-11-05 17:12:34 -08:00
Makefile bcache: move closures to lib/ 2023-10-19 14:47:33 -04:00
alloc.c bcache: update min_heap_callbacks to use default builtin swap 2024-11-05 17:12:36 -08:00
bcache.h bcache: remove heap-related macros and switch to generic min_heap 2024-06-24 22:25:00 -07:00
bcache_ondisk.h flexible-array transformations for 6.3-rc1 2023-02-25 12:53:42 -08:00
bset.c bcache: update min_heap_callbacks to use default builtin swap 2024-11-05 17:12:36 -08:00
bset.h bcache: remove heap-related macros and switch to generic min_heap 2024-06-24 22:25:00 -07:00
btree.c bcache: remove heap-related macros and switch to generic min_heap 2024-06-24 22:25:00 -07:00
btree.h Locking changes for v6.5: 2023-06-27 14:14:30 -07:00
debug.c block: turn bio_kmalloc into a simple kmalloc wrapper 2022-04-17 19:30:41 -06:00
debug.h
extents.c bcache: update min_heap_callbacks to use default builtin swap 2024-11-05 17:12:36 -08:00
extents.h
features.c
features.h
io.c block: pass a block_device and opf to bio_init 2022-02-02 07:49:59 -07:00
journal.c closures: CLOSURE_CALLBACK() to fix type punning 2023-11-24 00:29:58 -05:00
journal.h bcache: avoid journal no-space deadlock by reserving 1 journal bucket 2022-05-24 06:19:33 -06:00
movinggc.c bcache: update min_heap_callbacks to use default builtin swap 2024-11-05 17:12:36 -08:00
request.c bcache: call force_wake_up_gc() if necessary in check_should_bypass() 2024-05-28 06:55:59 -06:00
request.h closures: CLOSURE_CALLBACK() to fix type punning 2023-11-24 00:29:58 -05:00
stats.c
stats.h bcache: Remove dead references to cache_readaheads 2023-06-15 07:30:11 -06:00
super.c - In the series "treewide: Refactor heap related implementation", 2024-07-21 17:56:22 -07:00
sysfs.c bcache: remove heap-related macros and switch to generic min_heap 2024-06-24 22:25:00 -07:00
sysfs.h bcache: make kobj_type structures constant 2023-06-15 07:30:11 -06:00
trace.c
util.c bcache: fix typo 2024-06-24 22:24:56 -07:00
util.h bcache: remove heap-related macros and switch to generic min_heap 2024-06-24 22:25:00 -07:00
writeback.c bcache: remove heap-related macros and switch to generic min_heap 2024-06-24 22:25:00 -07:00
writeback.h bcache: improve multithreaded bch_sectors_dirty_init() 2022-05-24 06:19:33 -06:00