Searched hist:"697 e23495c94f0380c1ed8b11f830b92b64c99ea" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/md/bcache/ |
H A D | alloc.c | diff 697e23495c94f0380c1ed8b11f830b92b64c99ea Thu Oct 01 01:50:46 CDT 2020 Coly Li <colyli@suse.de> 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>
|
H A D | bcache.h | diff 697e23495c94f0380c1ed8b11f830b92b64c99ea Thu Oct 01 01:50:46 CDT 2020 Coly Li <colyli@suse.de> 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>
|
H A D | super.c | diff 697e23495c94f0380c1ed8b11f830b92b64c99ea Thu Oct 01 01:50:46 CDT 2020 Coly Li <colyli@suse.de> 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>
|