diff options
| author | Eric Blake | 2016-06-24 00:37:24 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2016-07-05 16:46:26 +0200 |
| commit | a5b8dd2ce83208cd7d6eb4562339ecf5aae13574 (patch) | |
| tree | eea17f09c6a183d2526f90798c6f6097db506195 /block/blkdebug.c | |
| parent | block: Split bdrv_merge_limits() from bdrv_refresh_limits() (diff) | |
| download | qemu-a5b8dd2ce83208cd7d6eb4562339ecf5aae13574.tar.gz qemu-a5b8dd2ce83208cd7d6eb4562339ecf5aae13574.tar.xz qemu-a5b8dd2ce83208cd7d6eb4562339ecf5aae13574.zip | |
block: Move request_alignment into BlockLimit
It makes more sense to have ALL block size limit constraints
in the same struct. Improve the documentation while at it.
Simplify a couple of conditionals, now that we have audited and
documented that request_alignment is always non-zero.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/blkdebug.c')
| -rw-r--r-- | block/blkdebug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blkdebug.c b/block/blkdebug.c index 54b68704de..b6ecee379d 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -726,7 +726,7 @@ static void blkdebug_refresh_limits(BlockDriverState *bs, Error **errp) BDRVBlkdebugState *s = bs->opaque; if (s->align) { - bs->request_alignment = s->align; + bs->bl.request_alignment = s->align; } } |
