block: add a flags argument to (__)blkdev_issue_zeroout
authorChristoph Hellwig <hch@lst.de>
Wed, 5 Apr 2017 17:21:08 +0000 (19:21 +0200)
committerJens Axboe <axboe@fb.com>
Sat, 8 Apr 2017 17:25:38 +0000 (11:25 -0600)
commitee472d835c264a4cb77f8cf878603e1e40f3559e
tree923d051ac77e50e2871eefc7c6f7da43da3538c9
parentc20cfc27a47307e811346f85959cf3cc07ae42f9
block: add a flags argument to (__)blkdev_issue_zeroout

Turn the existing discard flag into a new BLKDEV_ZERO_UNMAP flag with
similar semantics, but without referring to diŃ•card.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-lib.c
block/ioctl.c
drivers/block/drbd/drbd_receiver.c
drivers/nvme/target/io-cmd.c
fs/block_dev.c
fs/dax.c
fs/xfs/xfs_bmap_util.c
include/linux/blkdev.h