• Coly Li's avatar
    bcache: remove embedded struct cache_sb from struct cache_set · 4a784266
    Coly Li authored
    Since bcache code was merged into mainline kerrnel, each cache set only
    as one single cache in it. The multiple caches framework is here but the
    code is far from completed. Considering the multiple copies of cached
    data can also be stored on e.g. md raid1 devices, it is unnecessary to
    support multiple caches in one cache set indeed.
    
    The previous preparation patches fix the dependencies of explicitly
    making a cache set only have single cache. Now we don't have to maintain
    an embedded partial super block in struct cache_set, the in-memory super
    block can be directly referenced from struct cache.
    
    This patch removes the embedded struct cache_sb from struct cache_set,
    and fixes all locations where the superb lock was referenced from this
    removed super block by referencing the in-memory super block of struct
    cache.
    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>
    4a784266
extents.c 15.1 KB