From a5b8dd2ce83208cd7d6eb4562339ecf5aae13574 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 23 Jun 2016 16:37:24 -0600 Subject: 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 Reviewed-by: Fam Zheng Signed-off-by: Kevin Wolf --- block/bochs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'block/bochs.c') diff --git a/block/bochs.c b/block/bochs.c index 182c50b7a4..4194f1dd50 100644 --- a/block/bochs.c +++ b/block/bochs.c @@ -190,7 +190,7 @@ fail: static void bochs_refresh_limits(BlockDriverState *bs, Error **errp) { - bs->request_alignment = BDRV_SECTOR_SIZE; /* No sub-sector I/O supported */ + bs->bl.request_alignment = BDRV_SECTOR_SIZE; /* No sub-sector I/O */ } static int64_t seek_to_sector(BlockDriverState *bs, int64_t sector_num) -- cgit v1.2.1