dm integrity: introduce a function add_new_range_and_wait()
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 29 Apr 2019 12:57:22 +0000 (14:57 +0200)
committerMike Snitzer <snitzer@redhat.com>
Wed, 8 May 2019 17:40:28 +0000 (13:40 -0400)
commit8b3bbd490d880db1377c71daf9c929c8446c8375
treedcc69d8d58075dbb2a38a60803965edbddbbe1e5
parent4f43446ddff056df237a8ee9257ec94baeed909d
dm integrity: introduce a function add_new_range_and_wait()

Introduce a function add_new_range_and_wait() in order to avoid
repetitive code.  It will be used in the following commit.

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