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)
commit08fdb2cddbdc783fecadfb606868c4498165fc30
treed54bd96c0718badb1252fe6ada94465bb26e729d
parent697e23495c94f0380c1ed8b11f830b92b64c99ea
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