md/raid5: round discard alignment up to power of 2.
authorNeilBrown <neilb@suse.de>
Mon, 19 Nov 2012 02:11:26 +0000 (13:11 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 20 Nov 2012 08:42:56 +0000 (19:42 +1100)
commit4ac6875eeb97a49bad7bc8d56b5ec935904fc6e7
tree3443bf90a75f43f118487bcb822ff5e511ee3e3b
parent5eff3c439d3478ba9e8ba5f8c0aaf6e6fadb6e58
md/raid5: round discard alignment up to power of 2.

blkdev_issue_discard currently assumes that the granularity
is a power of 2.  So in raid5, round the chosen number up to
avoid embarrassment.

Cc: Shaohua Li <shli@kernel.org>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c