commit: Switch commit_run() to byte-based
authorEric Blake <eblake@redhat.com>
Fri, 7 Jul 2017 12:44:45 +0000 (07:44 -0500)
committerKevin Wolf <kwolf@redhat.com>
Mon, 10 Jul 2017 11:18:06 +0000 (13:18 +0200)
commit317a6676a279bf71c881992387f75e16e009259c
tree531fdf39cbf4c57aff4b6346496c7aa16bab2944
parentd8a9858408bcc57a3f4934c5082dd4dddebae583
commit: Switch commit_run() to byte-based

We are gradually converting to byte-based interfaces, as they are
easier to reason about than sector-based.  Change the internal
loop iteration of committing to track by bytes instead of sectors
(although we are still guaranteed that we iterate by steps that
are sector-aligned).

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/commit.c