block: Use BDRV_REQUEST_MAX_BYTES instead of BDRV_REQUEST_MAX_SECTORS
commit41ae31e3d7696ec639b8fd6c162846244eeaa511
authorAlberto Garcia <berto@igalia.com>
Tue, 14 May 2019 13:57:35 +0000 (14 16:57 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 20 May 2019 15:08:56 +0000 (20 17:08 +0200)
treeb944c904d605789c320aff6f9aea39c3e48b6593
parentb6c246942b14d3e0dec46a6c5868ed84e7dbea19
block: Use BDRV_REQUEST_MAX_BYTES instead of BDRV_REQUEST_MAX_SECTORS

There are a few places in which we turn a number of bytes into sectors
in order to compare the result against BDRV_REQUEST_MAX_SECTORS
instead of using BDRV_REQUEST_MAX_BYTES directly.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/io.c
qemu-io-cmds.c