dm thin metadata: remove in-core 'read_only' flag
authorMike Snitzer <snitzer@redhat.com>
Thu, 23 Apr 2015 19:06:27 +0000 (15:06 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2015 18:18:59 +0000 (14:18 -0400)
commit49f154c7327139c275c9392b5fd69cad82f106bc
treeaaab9fc27b1d91ccb31ba148e0cd5fe8bd942ef1
parentf8ae75253e4174089ffe3046715c679183f1919f
dm thin metadata: remove in-core 'read_only' flag

Leverage the block manager's read_only flag instead of duplicating it;
access with new dm_bm_is_read_only() method.

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