[Drbd-dev] [PATCH 07/23] block: stop using blkdev_issue_write_same for zeroing

Christoph Hellwig hch at lst.de
Thu Mar 23 15:33:25 CET 2017


We'll always use the WRITE ZEROES code for zeroing now.

Signed-off-by: Christoph Hellwig <hch at lst.de>
---
 block/blk-lib.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/block/blk-lib.c b/block/blk-lib.c
index ed1e78e24db0..a93115ccf461 100644
--- a/block/blk-lib.c
+++ b/block/blk-lib.c
@@ -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,
-			ZERO_PAGE(0)))
-		return 0;
-
 	blk_start_plug(&plug);
 	ret = __blkdev_issue_zeroout(bdev, sector, nr_sects, gfp_mask,
 			&bio, discard);
-- 
2.11.0



More information about the drbd-dev mailing list