• M
    dm: stop using bi_private · bfc6d41c
    Mikulas Patocka 提交于
    Device mapper uses the bio structure's bi_private field as a pointer
    to dm_target_io or dm_rq_clone_bio_info.  But a bio structure is
    embedded in the dm_target_io and dm_rq_clone_bio_info structures, so the
    pointer to the structure that contains the bio can be found with the
    container_of() macro.
    
    Remove the use of bi_private and use container_of() instead.
    Signed-off-by: NMikulas Patocka <mpatocka@redhat.com>
    Signed-off-by: NMike Snitzer <snitzer@redhat.com>
    bfc6d41c
dm.c 64.2 KB