dm integrity: add ic->start in get_data_sector()
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 3 Jul 2018 18:13:29 +0000 (20:13 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 27 Jul 2018 19:24:24 +0000 (15:24 -0400)
commit71e9ddbcb99e9bf1f968906b395e172ea8328365
treed7f912802f7ec11d8936b32625ff40158b9d56fa
parentf84fd2c98480fa0e3c0b43996c4e235bdf4a9527
dm integrity: add ic->start in get_data_sector()

A small refactoring.  Add the variable ic->start to the result
returned by get_data_sector() and not in the callers.  This is a
prerequisite for the commit that adds the ability to use an external
metadata device.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-integrity.c