Coly Li 697e23495c bcache: explicitly make cache_set only have single cache
Currently although the bcache code has a framework for multiple caches
in a cache set, but indeed the multiple caches never completed and users
use md raid1 for multiple copies of the cached data.

This patch does the following change in struct cache_set, to explicitly
make a cache_set only have single cache,
- Change pointer array "*cache[MAX_CACHES_PER_SET]" to a single pointer
  "*cache".
- Remove pointer array "*cache_by_alloc[MAX_CACHES_PER_SET]".
- Remove "caches_loaded".

Now the code looks as exactly what it does in practic: only one cache is
used in the cache set.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-10-02 14:25:29 -06:00
..
2019-11-12 19:12:07 -07:00
2016-11-01 09:43:26 -06:00
2020-07-08 17:20:46 -06:00
2017-06-09 09:27:32 -06:00
2020-08-03 11:57:03 -07:00
2020-07-08 17:20:46 -06:00
2020-07-08 17:20:46 -06:00
2019-03-12 10:15:18 -07:00