]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1eac55bf588f80513ecfae3f96def0031c818fd
treefbb1e83537ed759ae63b5e1dc93f741acb30d552
parent9c35259b5cf9ef5c88102b7866bfdc33aaa20321
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