diff options
author | Eric Blake <eblake@redhat.com> | 2016-06-23 16:37:24 -0600 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-07-05 16:46:26 +0200 |
commit | a5b8dd2ce83208cd7d6eb4562339ecf5aae13574 (patch) | |
tree | eea17f09c6a183d2526f90798c6f6097db506195 /block/vvfat.c | |
parent | d9e0dfa2462e32cc5c6c49401ad7bff36453f75c (diff) |
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/vvfat.c')
-rw-r--r-- | block/vvfat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vvfat.c b/block/vvfat.c index 4d446364a3..fc948cb863 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -1210,7 +1210,7 @@ fail: static void vvfat_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 inline void vvfat_close_current_file(BDRVVVFATState *s) |