Skip to content
  • Hanna Reitz's avatar
    9a6fc887
    block: Add child access functions · 9a6fc887
    Hanna Reitz authored
    
    
    There are BDS children that the general block layer code can access,
    namely bs->file and bs->backing.  Since the introduction of filters and
    external data files, their meaning is not quite clear.  bs->backing can
    be a COW source, or it can be a filtered child; bs->file can be a
    filtered child, it can be data and metadata storage, or it can be just
    metadata storage.
    
    This overloading really is not helpful.  This patch adds functions that
    retrieve the correct child for each exact purpose.  Later patches in
    this series will make use of them.  Doing so will allow us to handle
    filter nodes in a meaningful way.
    
    Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
    Reviewed-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
    9a6fc887
    block: Add child access functions
    Hanna Reitz authored
    
    
    There are BDS children that the general block layer code can access,
    namely bs->file and bs->backing.  Since the introduction of filters and
    external data files, their meaning is not quite clear.  bs->backing can
    be a COW source, or it can be a filtered child; bs->file can be a
    filtered child, it can be data and metadata storage, or it can be just
    metadata storage.
    
    This overloading really is not helpful.  This patch adds functions that
    retrieve the correct child for each exact purpose.  Later patches in
    this series will make use of them.  Doing so will allow us to handle
    filter nodes in a meaningful way.
    
    Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
    Reviewed-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Loading