]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit628b2ae212d4c3e8b0696a51936fcde759ac8a54
treed911f24cd7d09a92c992e58495c7704621ccde38
parent153495022b50d878c7887e8e2214c8f08335be55
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 7ee99be492139c8218646740d2b7a0910b000253 "block:
discard granularity might not be power of 2" and
948deb46283e376e4bd413859723ce24fe0ceb0a "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