dm thin metadata: check __commit_transaction()'s return
authorMike Snitzer <snitzer@redhat.com>
Mon, 15 Apr 2019 20:40:08 +0000 (16:40 -0400)
committerMike Snitzer <snitzer@redhat.com>
Thu, 18 Apr 2019 20:18:33 +0000 (16:18 -0400)
commita1ed4d9e937678d15990694c32e1d104e54e97a3
tree85e923dcefefb8bd42522b0e7f7c5aca407bc887
parentc6e086e0c9b2133f38563707c96b22fd0906f570
dm thin metadata: check __commit_transaction()'s return

Fix __reserve_metadata_snap() to return early if __commit_transaction()
fails.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-thin-metadata.c