loop: Fix discard_alignment default setting
authorLukas Czerner <lczerner@redhat.com>
Fri, 2 Dec 2011 13:47:03 +0000 (14:47 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 Dec 2011 13:47:03 +0000 (14:47 +0100)
commitdfaf3c036cd46a73f4ef3e4b75c1f647e503d4e1
tree4a4d37e3560e358c83e4f763cf90db0b22444cb7
parent5eb46851de3904cd1be9192fdacb8d34deadc1fc
loop: Fix discard_alignment default setting

discard_alignment is not relevant to the loop driver since it is
supposed to be set as a workaround for the old sector 63 alignments.
So set it to zero rather than block size.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reported-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c