• Coly Li's avatar
    bcache: remove can_attach_cache() · ebaa1ac1
    Coly Li authored
    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: default avatarColy Li <colyli@suse.de>
    Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    ebaa1ac1
super.c 70.4 KB