• Hannes Reinecke's avatar
    dm zoned: separate random and cache zones · 34f5affd
    Hannes Reinecke authored
    Instead of lumping emulated zones together with random zones we
    should be handling them as separate 'cache' zones. This improves
    code readability and allows an easier implementation of different
    cache policies.
    
    Also add additional allocation flags, to separate the type (cache,
    random, or sequential) from the purpose (eg reclaim).
    
    Also switch the allocation policy to not use random zones as buffer
    zones if cache zones are present. This avoids a performance drop when
    all cache zones are used.
    Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
    Reviewed-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
    Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
    34f5affd
dm-zoned-metadata.c 68.9 KB