dm thin: return error from alloc_data_block if pool is not in write mode
authorJoe Thornber <ejt@redhat.com>
Thu, 5 Dec 2013 00:16:11 +0000 (19:16 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 7 Jan 2014 15:14:24 +0000 (10:14 -0500)
commit8d30abff758b5f6c71343b7da6bb5de129a76c08
tree9fdb1fd9d22ad3546f47bdc7151d06779afbe412
parent7f214665124401db3d171fd1f9f1ec6552b38b36
dm thin: return error from alloc_data_block if pool is not in write mode

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