]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: remove for_each_cache()
authorColy Li <colyli@suse.de>
Thu, 1 Oct 2020 06:50:47 +0000 (14:50 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 Oct 2020 20:25:29 +0000 (14:25 -0600)
commitde16cdca5ad58b667571e403d04e487fee668bb4
treed54bd96c0718badb1252fe6ada94465bb26e729d
parent454b1a61c7d01bc42f309994c2f900b5a46e99df
bcache: remove for_each_cache()

Since now each cache_set explicitly has single cache, for_each_cache()
is unnecessary. This patch removes this macro, and update all locations
where it is used, and makes sure all code logic still being consistent.

Signed-off-by: Coly Li <colyli@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/alloc.c
drivers/md/bcache/bcache.h
drivers/md/bcache/btree.c
drivers/md/bcache/journal.c
drivers/md/bcache/movinggc.c
drivers/md/bcache/super.c