block: move bdrv_qiov_is_aligned to file-posix
commita7c5f67a78569f8c275ea4ea9962e9c79b9d03cb
authorKeith Busch <kbusch@kernel.org>
Thu, 29 Sep 2022 20:05:22 +0000 (29 13:05 -0700)
committerKevin Wolf <kwolf@redhat.com>
Fri, 30 Sep 2022 16:43:44 +0000 (30 18:43 +0200)
tree38027ba5bf27107a1b67f34fc8731655f69b5b81
parent283153f10ab474cb2f14cc2b3f272edcf13aedaf
block: move bdrv_qiov_is_aligned to file-posix

There is only user of bdrv_qiov_is_aligned(), so move the alignment
function to there and make it static.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Message-Id: <20220929200523.3218710-2-kbusch@meta.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/file-posix.c
block/io.c
include/block/block-io.h