Repository navigation
Commit ebaa1ac
bcache: remove can_attach_cache()
After removing the embedded struct cache_sb from struct cache_set, cache
set will directly reference the in-memory super block of struct cache.
It is unnecessary to compare block_size, bucket_size and nr_in_set from
the identical in-memory super block in can_attach_cache().
This is a preparation patch for latter removing cache_set->sb from
struct cache_set.
Signed-off-by: Coly Li <colyli@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 08a1782 commit ebaa1ac
1 file changed
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2127 | 2127 | | |
2128 | 2128 | | |
2129 | 2129 | | |
2130 | | - | |
2131 | | - | |
2132 | | - | |
2133 | | - | |
2134 | | - | |
2135 | | - | |
2136 | | - | |
2137 | 2130 | | |
2138 | 2131 | | |
2139 | 2132 | | |
| |||
2145 | 2138 | | |
2146 | 2139 | | |
2147 | 2140 | | |
2148 | | - | |
2149 | | - | |
2150 | | - | |
2151 | 2141 | | |
2152 | 2142 | | |
2153 | 2143 | | |
| |||
0 commit comments