dm thin: tidy discard support
authorMike Snitzer <snitzer@redhat.com>
Wed, 26 Sep 2012 22:45:46 +0000 (23:45 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 26 Sep 2012 22:45:46 +0000 (23:45 +0100)
commit9bc142dd755d360c08a91ecb107d218787a2e9db
treeb704174c6d6d3fdf55484fc85bd29ff37808b109
parent3ae706561637331aa578e52bb89ecbba5edcb7a9
dm thin: tidy discard support

A little thin discard code refactoring to make the next patch (dm thin:
fix discard support for data devices) more readable.
Pull out a couple of functions (and uses bools instead of unsigned for
features).

No functional changes.

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