Skip to content
Snippets Groups Projects
Commit 93393e69 authored by Hanna Reitz's avatar Hanna Reitz Committed by Kevin Wolf
Browse files

block: Use bdrv_filter_(bs|child) where obvious


Places that use patterns like

    if (bs->drv->is_filter && bs->file) {
        ... something about bs->file->bs ...
    }

should be

    BlockDriverState *filtered = bdrv_filter_bs(bs);
    if (filtered) {
        ... something about @filtered ...
    }

instead.

Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
Reviewed-by: default avatarAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 4935e8be
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment