dm thin: support a non power of 2 discard_granularity
authorMike Snitzer <snitzer@redhat.com>
Fri, 1 Mar 2013 22:45:44 +0000 (22:45 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 1 Mar 2013 22:45:44 +0000 (22:45 +0000)
commitf13945d75730081830b6f3360266950e2b7c9067
treed911f24cd7d09a92c992e58495c7704621ccde38
parentfd7c092e711ebab55b2688d3859d95dfd0301f73
dm thin: support a non power of 2 discard_granularity

Support a non-power-of-2 discard granularity in dm-thin, now that the block
layer supports this(via 8dd2cb7e880d2f77fba53b523c99133ad5054cfd "block:
discard granularity might not be power of 2" and
59771079c18c44e39106f0f30054025acafadb41 "blk: avoid divide-by-zero with zero
discard granularity").

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