dm thin: tidy discard support
authorMike Snitzer <[email protected]>
Wed, 26 Sep 2012 22:45:46 +0000 (23:45 +0100)
committerAlasdair G Kergon <[email protected]>
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 <[email protected]>
Signed-off-by: Joe Thornber <[email protected]>
Signed-off-by: Alasdair G Kergon <[email protected]>
drivers/md/dm-thin.c