]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e272244a42c15fff21f2f4dab98442ad8cd34ce
treeb704174c6d6d3fdf55484fc85bd29ff37808b109
parent25d4afbbf318475cf37d55d866732fc6c3ea2bca
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