]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: make intelligent use of blkdev_issue_zeroout
authorChristoph Hellwig <hch@lst.de>
Wed, 5 Apr 2017 17:21:21 +0000 (19:21 +0200)
committerJens Axboe <axboe@fb.com>
Sat, 8 Apr 2017 17:25:38 +0000 (11:25 -0600)
commitd12c04216c50e2c1b6abce9b8474815ab762ab55
tree8f6f673be536243457eb8ba5ce4cc271be7a3b2c
parent77e64c729ac6ff14d5fae7388ae544928fd83be2
drbd: make intelligent use of blkdev_issue_zeroout

drbd always wants its discard wire operations to zero the blocks, so
use blkdev_issue_zeroout with the BLKDEV_ZERO_UNMAP flag instead of
reinventing it poorly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/drbd/drbd_debugfs.c
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_req.c