Commit c20cfc27 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

block: stop using blkdev_issue_write_same for zeroing

We'll always use the WRITE ZEROES code for zeroing now.
Signed-off-by: default avatarChristoph Hellwig <>
Reviewed-by: default avatarMartin K. Petersen <>
Reviewed-by: default avatarHannes Reinecke <>
Signed-off-by: default avatarJens Axboe <>
parent 615ec946
......@@ -364,10 +364,6 @@ int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
return 0;
if (!blkdev_issue_write_same(bdev, sector, nr_sects, gfp_mask,
return 0;
ret = __blkdev_issue_zeroout(bdev, sector, nr_sects, gfp_mask,
&bio, discard);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment