]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - block/blk-lib.c
block: add a new BLKDEV_ZERO_NOFALLBACK flag
authorChristoph Hellwig <hch@lst.de>
Wed, 5 Apr 2017 17:21:10 +0000 (19:21 +0200)
committerJens Axboe <axboe@fb.com>
Sat, 8 Apr 2017 17:25:38 +0000 (11:25 -0600)
commitcb365b9675fda026caba4cb5df83292cb7c0811a
treefbb1e83537ed759ae63b5e1dc93f741acb30d552
parentd928be9f853b9755692d7e9aed402c1809a88e56
block: add a new BLKDEV_ZERO_NOFALLBACK flag

This avoids fallbacks to explicit zeroing in (__)blkdev_issue_zeroout if
the caller doesn't want them.

Also clean up the convoluted check for the return condition that this
new flag is added to.

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
include/linux/blkdev.h