drbd: discard_zeroes_if_aligned allows "thin" resync for discard_zeroes_data=0
authorLars Ellenberg <lars@linbit.com>
Mon, 13 Jun 2016 22:26:29 +0000 (00:26 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 14 Jun 2016 03:43:06 +0000 (21:43 -0600)
commit65f5be3579a69c6a057eeb99620999788982bff6
tree116ce9c598cce7bc43b837e1e36e1fab0db35c52
parentaf61494ad4725ed78bd6b3f159a32463d80fdd60
drbd: discard_zeroes_if_aligned allows "thin" resync for discard_zeroes_data=0

Even if discard_zeroes_data != 0,
if discard_zeroes_if_aligned is set, we assume we can reliably
zero-out/discard using the drbd_issue_peer_discard() helper.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/drbd/drbd_nl.c