commit | 93393e698c76c9b95b1fcf9649eef41f9cdbbb07 | [log] [tgz] |
---|---|---|
author | Max Reitz <mreitz@redhat.com> | Wed Jun 12 17:03:38 2019 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Mon Sep 07 12:31:31 2020 +0200 |
tree | 4efe6b10f5caf6cfe4b75a15812aff8703e4df95 | |
parent | 4935e8be22745ff2b23bc87a5015176d991ce233 [diff] |
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: Max Reitz <mreitz@redhat.com> Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com>